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