Exemple #1
0
        public ActionResult NavLast()
        {
            LayoutModel layoutModel;

            layoutService = new LayoutService();

            layoutModel = layoutService.NavLast();
            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));
        }