Example #1
0
        public ActionResult <NewEmployerVm> EditEmployer(int id)
        {
            var model = _employerService.GetEmployerForEdit(id);

            if (model == null)
            {
                return(NotFound());
            }
            return(Ok(model));
        }
Example #2
0
        public IActionResult EditEmployer(int id)
        {
            var employer = _employerService.GetEmployerForEdit(id);

            return(View(employer));
        }