Example #1
0
 public ViewResult GetPrev(SystemRegistration sr)
 {
     ModelState.Clear();
     return(View(nameof(Index), sys_reg_repository.MovePrev(sr.Syr_Cst_Code,
                                                            sr.Syr_Sys_Code,
                                                            sr.Syr_Ver_Code)));
 }
Example #2
0
        public IActionResult GetPrev(SystemRegistration sr)
        {
            ModelState.Clear();
            var model = sys_reg_repository.MovePrev(sr.Syr_Cst_Code, sr.Syr_Sys_Code, sr.Syr_Ver_Code);

            if (model == null)
            {
                return(RedirectToAction(nameof(Index)));
            }

            return(RedirectToAction(nameof(SystemRegForm), model));
        }