Ejemplo n.º 1
0
 public bool DeleteByID(int id)
 {
     try
     {
         bool isSuccess;
         using (var companyRepo = new CompanyRepository())
         {
             isSuccess = companyRepo.DeleteByID(id);
         }
         return(isSuccess);
     }
     catch (Exception ex)
     {
         LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
         throw new Exception("CarRental.BusinessLogic.Concretes::Delete:Error occured.", ex);
     }
 }