コード例 #1
0
 public JsonResult GetPricesWorkForce(string value)
 {
     try
     {
         ModelViewUserG objCred = new JavaScriptSerializer().Deserialize <ModelViewUserG>(value);
         var            lt      = FacadePrice.GetListPricesWorkforce(objCred);
         return(Json(lt, JsonRequestBehavior.AllowGet));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #2
0
        public ActionResult GetPricesModel(string value)
        {
            try
            {
                ModelViewUserG objCred = new JavaScriptSerializer().Deserialize <ModelViewUserG>(value);
                var            lt      = FacadePrice.GetListPrices(objCred);

                var serializer = new JavaScriptSerializer {
                    MaxJsonLength = Int32.MaxValue
                };
                var result = new ContentResult
                {
                    Content     = serializer.Serialize(lt),
                    ContentType = "application/json"
                };
                return(result);

                //return Json(lt, JsonRequestBehavior.AllowGet);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }