public static bool DeleteMunkiTemplates(int computerId) { using (var uow = new DAL.UnitOfWork()) { uow.ComputerMunkiRepository.DeleteRange(x => x.ComputerId == computerId); return uow.Save(); } }