public ActionResult <EnvironmentViewModel> GetEnvironment(int id) { var environment = _service.ConsultEnvironment(id); if (environment == null) { return(NotFound()); } return(Ok(_mapper.Map <EnvironmentViewModel>(environment))); }
public ActionResult <EnvironmentViewModel> GetEnvironment(int id) { var environment = _service.ConsultEnvironment(id); if (environment == null) { return(NotFound()); } return(Ok(_mapper.Map <EnvironmentViewModel>(environment))); }