public JsonResult Add(Master_Country c) { //if (!ModelState.IsValid) //{ //return Json(new { success = false, issue = c, errors = ModelState.Values.Where(i => i.Errors.Count > 0) }); //} var redirectUrl = new UrlHelper(Request.RequestContext).Action("Index", "Country"); return(Json(db.Add(c), JsonRequestBehavior.AllowGet)); }
public JsonResult Addstate(Mater_State s) { return(Json(db.Add(s), JsonRequestBehavior.AllowGet)); }