Ejemplo n.º 1
0
        public ActionResult <EmployerDetailsVm> ViewEmployer(int id)
        {
            var model = _employerService.GetEmployerDetails(id);

            if (model == null)
            {
                return(NotFound());
            }
            return(Ok(model));
        }
Ejemplo n.º 2
0
        public IActionResult ViewEmployer(int id)
        {
            var employerModel = _employerService.GetEmployerDetails(id);

            return(View(employerModel));
        }