Esempio n. 1
0
        public ActionResult NavFirst()
        {
            LayoutModel layoutModel;

            layoutService = new LayoutService();

            layoutModel = layoutService.NavFirst();
            if (layoutModel != null)
            {
                layoutModel._FormMode = FormModeEnum.Edit;
            }

            if (layoutModel == null)
            {
                //layoutModel = layoutService.GetNewModel();
                throw new Exception("[VALIDATION]-Data not exists");
            }

            return(PartialView(VIEW_FORM_PARTIAL, layoutModel));
        }