public ActionResult GetAll() { var results = _mainobj.GetAll(); if (results != null) { return(Json(new { data = results }, JsonRequestBehavior.AllowGet)); } return(Json(new { data = new string[] { } }, JsonRequestBehavior.AllowGet)); }
public ActionResult GetAll() { var results = _mainobj.GetAll(); if (results != null) { return(Json(new { data = results }, JsonRequestBehavior.AllowGet)); } return(Json(new { data = new string[] { } }, JsonRequestBehavior.AllowGet)); }