Example #1
0
 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;
     }
 }
Example #2
0
 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;
     }
 }