Beispiel #1
0
        // GET: User/Edit/5
        public ActionResult Edit(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            var model = userHelper.BuildUserViewModel(id);

            if (model == null)
            {
                return(HttpNotFound());
            }

            return(View(model));
        }