public JsonResult GetDMChungTuKemTheoByThuTucID(string ThuTucID) { try { using (MotCuaService = new MotCuaServiceClient()) { var response = MotCuaService.MotCua_DM_ChungTuKemTheo_GetByThuTucID(int.Parse(ThuTucID)); return(Json(response.StatusCode != HttpStatusCode.OK ? null : new { response.Content }, JsonRequestBehavior.AllowGet)); } } catch (Exception e) { Logger.Error(e.Message); Console.WriteLine(e); throw; } }
public JsonResult GetDMChungTuKemTheoByThuTucIDJsonResult(int thutucID = 0) { try { using (MotCuaService = new MotCuaServiceClient()) { var response = MotCuaService.MotCua_DM_ChungTuKemTheo_GetByThuTucID(thutucID); if (response.StatusCode != HttpStatusCode.OK) { return(Json(new { result = "" }, JsonRequestBehavior.AllowGet)); } return(Json(new { result = response.Content }, JsonRequestBehavior.AllowGet)); } } catch (Exception e) { Logger.Error(e.Message); Console.WriteLine(e); throw; } }