Пример #1
0
        public IHttpActionResult GetAllIoTHub()
        {
            int         companyId = Global.GetCompanyIdFromToken();
            IoTHubModel model     = new IoTHubModel();

            return(Content(HttpStatusCode.OK, model.GetAllByCompanyId(companyId)));
        }
Пример #2
0
        public IHttpActionResult GetAllIoTHubByCompanyId(int id)
        {
            IoTHubModel model = new IoTHubModel();

            return(Content(HttpStatusCode.OK, model.GetAllByCompanyId(id)));
        }