public JsonResult InsertAndUpdateLocation(string locationDataArray) { string msg = ""; locationDataArray = HttpUtility.UrlDecode(locationDataArray); NameValueCollectionData nameValueCollectionData_Obj = new NameValueCollectionData(); NameValueCollection Location_CreateCollection = nameValueCollectionData_Obj.GetQueryStringCollection(locationDataArray); ModifyLocationsData locationDataCreation_Obj = new ModifyLocationsData(); msg = locationDataCreation_Obj.InsertAndUpdateLocation(Location_CreateCollection); return(Json(msg, JsonRequestBehavior.AllowGet)); }
public JsonResult GetAllLocationsData() { try { List <HCM_Location> location_list = new List <HCM_Location>(); ModifyLocationsData location_Obj = new ModifyLocationsData(); location_list = location_Obj.GetAllLocations(); var jsonResult = Json(location_list, JsonRequestBehavior.AllowGet); jsonResult.MaxJsonLength = int.MaxValue; return(jsonResult); } catch (Exception ex) { throw ex; } }