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