public IActionResult Get() { var response = _mapper.Map <List <Engineer>, List <EngineerViewModel> >((List <Engineer>)_engineers.GetAll()); return(StatusCode((int)HttpStatusCode.OK, response)); }
public ActionResult <List <Engineer> > GetAll() { return(Ok(_service.GetAll().ToList())); }