Esempio n. 1
0
 public Entity.ActionStatus Delete(Guid id)
 {
     try
     {
         //TODO: NEED TO IMPLEMENT RDK CALLS
         var dbCompanyConfig = _companyConfigRepository.GetByUniqueId(x => x.Guid == id);
         if (dbCompanyConfig == null)
         {
             throw new NotFoundCustomException($"{CommonException.Name.NoRecordsFound} : CompanyConfig");
         }
         return(_companyConfigRepository.Delete(dbCompanyConfig));
     }
     catch (Exception ex)
     {
         _logger.ErrorLog(ex, "CompanyConfig.Delete " + ex);
         return(new Entity.ActionStatus
         {
             Success = false,
             Message = ex.Message
         });
     }
 }