Пример #1
0
        // GET: firm/Edit/5
        public ActionResult Edit(int?id, int?page)
        {
            ViewBag.Page = page;
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            firm firm = _firmService.FindById(id.Value);

            if (firm == null)
            {
                return(HttpNotFound());
            }
            return(View(firm));
        }