public JsonResult Get_Location(string id) { List <Add_Location_Category> lst = new List <Add_Location_Category>(); lst = Managing_agent_repository.ReturnMList <Add_Location_Category>().ToList(); return(Json(lst, JsonRequestBehavior.AllowGet)); }
public ActionResult Add_Location(Add_Location_Category lc) { string user = Membership.GetUser().ToString(); DateTime date = DateTime.Now; Managing_agent_repository.Add_Loc(lc, user, date); string message = "SUCCESS"; return(Json(new { Message = message, JsonRequestBehavior.AllowGet })); }