Пример #1
0
 /// <summary>
 /// The Delete
 /// </summary>
 /// <param name="entity">The entity<see cref="Licence"/></param>
 /// <returns>The <see cref="ServiceResult"/></returns>
 public ServiceResult Delete(Licence entity)
 {
     try
     {
         _repository.Delete(entity);
         return(new ServiceResult(true));
     }
     catch (Exception ex)
     {
         return(new ServiceResult(false)
         {
             Error = ex.ToString()
         });
     }
 }
Пример #2
0
 public void DeleteLicence(LicencePivot licence)
 {
     licenceRepository.Delete(Mapper.Map <LicencePivot, GES_Licence>(licence));
 }
Пример #3
0
 public Licence Delete(string Id)
 {
     return(_licenceRepository.Delete(Id));
 }