Example #1
0
 public JsonResult GetLinhVucByLinhVucID(string LinhVucID)
 {
     try
     {
         using (MotCuaService = new MotCuaServiceClient())
         {
             Session["DMLinhVucID"] = LinhVucID;
             var response = MotCuaService.MotCua_DM_LinhVuc_GetByLinhVucID(int.Parse(LinhVucID));
             return(Json(response.StatusCode != HttpStatusCode.OK ? null : new { response.Content }, JsonRequestBehavior.AllowGet));
         }
     }
     catch (Exception e)
     {
         Logger.Error(e.Message);
         Console.WriteLine(e);
         throw;
     }
 }