Ejemplo n.º 1
0
        public async Task <JsonResult> Get_DanhSachNhanSu(string ma, string trungtam)
        {
            try
            {
                ma       = !String.IsNullOrEmpty(ma) ? ma : "";
                trungtam = !String.IsNullOrEmpty(trungtam) && trungtam != "null" ? trungtam : "";
                var model = await Task.Run(() => db.APAX_DANHSACH_NHANSU(ma, trungtam).ToList());

                return(Json(model, JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                return(Json(ex.ToString(), JsonRequestBehavior.AllowGet));
            }
        }