public IHttpActionResult GetAllIoTHub() { int companyId = Global.GetCompanyIdFromToken(); IoTHubModel model = new IoTHubModel(); return(Content(HttpStatusCode.OK, model.GetAllByCompanyId(companyId))); }
public IHttpActionResult GetAllIoTHubByCompanyId(int id) { IoTHubModel model = new IoTHubModel(); return(Content(HttpStatusCode.OK, model.GetAllByCompanyId(id))); }