public ActionResult <EmployerDetailsVm> ViewEmployer(int id) { var model = _employerService.GetEmployerDetails(id); if (model == null) { return(NotFound()); } return(Ok(model)); }
public IActionResult ViewEmployer(int id) { var employerModel = _employerService.GetEmployerDetails(id); return(View(employerModel)); }