/// <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()
         });
     }
 }
Beispiel #2
0
 public void DeleteLicence(LicencePivot licence)
 {
     licenceRepository.Delete(Mapper.Map <LicencePivot, GES_Licence>(licence));
 }
Beispiel #3
0
 public Licence Delete(string Id)
 {
     return(_licenceRepository.Delete(Id));
 }