public async Task <IActionResult> Get(int id) { DicService c = new DicService(); var responseContent = await c.getById(id); return(Ok(responseContent)); }
public HomeController(ReportAppService reportApp, MenuService moduleApp, DicService dicItemApp, RoleService roleApp, OrgService orgApp) { ReportApp = reportApp; ModuleApp = moduleApp; DicItemApp = dicItemApp; RoleApp = roleApp; OrgApp = orgApp; }
public RPCServiceProxy(Uri uri, int links = 4, int retry = 5, int timeOut = 10 *1000) { ExceptionCollector.OnErr += ExceptionCollector_OnErr; _serviceConsumer = new ServiceConsumer(uri, links, retry, timeOut); _groupService = new GroupService(_serviceConsumer); _helloService = new HelloService(_serviceConsumer); _dicService = new DicService(_serviceConsumer); _genericService = new GenericService(_serviceConsumer); }
public RPCServiceProxy(string uri, int links = 4, int retry = 5, int timeOut = 10 * 1000) { ExceptionCollector.OnErr += ExceptionCollector_OnErr; _serviceConsumer = new ServiceConsumer(new Uri(uri), links, retry, timeOut); _En = new EnumService(_serviceConsumer); _Gr = new GroupService(_serviceConsumer); _He = new HelloService(_serviceConsumer); _Di = new DicService(_serviceConsumer); _Ge = new GenericService(_serviceConsumer); }
public ItemsTypeController(DicService app, DicService dicItemApp) { App = app; DicItemApp = dicItemApp; }
public ItemsDataController(DicService app) => App = app;