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