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; } }
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; } }