public static bool DeleteMunkiTemplates(int groupId) { using (var uow = new DAL.UnitOfWork()) { uow.GroupMunkiRepository.DeleteRange(x => x.GroupId == groupId); return uow.Save(); } }