コード例 #1
0
        // GET: Clients/Details/5
        public ActionResult Details(int id)
        {
            if (id == 0)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            return(PartialView(providersB.GetById(id)));
        }
コード例 #2
0
        // GET: Providers
        public JsonResult GetProviders(string id)
        {
            All_Providers providers = providerB.GetById(Convert.ToInt32(id));

            return(Json(providers, JsonRequestBehavior.AllowGet));
        }