コード例 #1
0
 public bool DeleteCompanyById(int ID)
 {
     try
     {
         bool isSuccess;
         using (var repo = new CompaniesRepository())
         {
             isSuccess = repo.DeletedById(ID);
         }
         return(isSuccess);
     }
     catch (Exception ex)
     {
         LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
         throw new Exception("BusinessLogic:CompaniesBusiness::DeleteCompanyById::Error occured.", ex);
     }
 }