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);
        }
Esempio n. 2
0
 public void Delete(DeleteInterest deletableId)
 {
     _repository.Delete(deletableId.Id);
 }