// Thiết bị public ActionResult GetAllDeviceByAgencyIdAndServiceId(int agencyId, int serviceId) { var result = _deviceDomain.ViewAllDeviceByAgencyIdAndServiceId(agencyId, serviceId); return(Json(new { result }, JsonRequestBehavior.AllowGet)); }
public HttpResponseMessage GetAllDeviceByAgencyIdAndServiceId(int agencyId, int serviceId) { var result = _deviceDomain.ViewAllDeviceByAgencyIdAndServiceId(agencyId, serviceId); return(Request.CreateResponse(HttpStatusCode.OK, result)); }