public Result <SchemeCategory> Get(int id) { var result = new Result <SchemeCategory>(); SchemeCategoryService SchemeCategoryService = new SchemeCategoryService(); var lstClient = SchemeCategoryService.Get(id); result.Value = (SchemeCategory)lstClient; result.IsSuccess = true; return(result); }
public Result <IList <SchemeCategory> > GetAll() { var result = new Result <IList <SchemeCategory> >(); SchemeCategoryService SchemeCategoryService = new SchemeCategoryService(); var lstClient = SchemeCategoryService.Get(); result.Value = (IList <SchemeCategory>)lstClient; result.IsSuccess = true; return(result); }