public Result <EPF> Get(int id) { var result = new Result <EPF>(); EPFService EPFService = new EPFService(); result.Value = EPFService.Get(id); result.IsSuccess = true; return(result); }
public Result <IList <EPF> > GetAll(int plannerId) { var result = new Result <IList <EPF> >(); EPFService EPFService = new EPFService(); result.Value = EPFService.GetAll(plannerId); result.IsSuccess = true; return(result); }
public Result Delete(EPF EPF) { var result = new Result(); try { EPFService EPFService = new EPFService(); EPFService.Delete(EPF); result.IsSuccess = true; } catch (Exception exception) { result.IsSuccess = false; result.ExceptionInfo = exception; } return(result); }