public ResponseData <object> DeleteInterest(DeleteInterest deleteInterest) { ResponseData <object> resp = new ResponseData <object>(); var facade = new InterestFacade(); try { facade.Delete(deleteInterest); } catch (Exception ex) { ExceptionHandlerFactory.Factory.GetResponseExceptionHandler(resp).Handle(ex); } return(resp); }
public void Delete(DeleteInterest deletableId) { _repository.Delete(deletableId.Id); }