Пример #1
0
        //
        // GET: /Customer/Home/Edit

        public ActionResult Edit()
        {
            var model = QuestionnaireViewModel.CreateFrom(Service.GetCompany());

            if (Request.IsAjaxRequest())
            {
                return(PartialView(model));
            }
            if (ControllerContext.IsChildAction)
            {
                return(PartialView(model));
            }
            return(View(model));
        }