public IActionResult Update(int id) { var director = _directorRepository.GetById(id); if (director == null) { return(NotFound()); } return(View(director)); }
public async Task <DirectorResponse> GetDirector(int id) { var result = await _directorRepository.GetById(id); return(new DirectorResponse { Id = result.Id, FullName = string.Concat(result.FirstName, result.LastName), NumberOfAwards = result.NumberOfAwards }); }
public IActionResult GetById(int id) { return(Ok(_directorRepository.GetById(id))); }