// GET: Clients/Details/5 public ActionResult Details(int id) { if (id == 0) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } return(PartialView(providersB.GetById(id))); }
// GET: Providers public JsonResult GetProviders(string id) { All_Providers providers = providerB.GetById(Convert.ToInt32(id)); return(Json(providers, JsonRequestBehavior.AllowGet)); }