public IHttpActionResult GetStudioByName(string id) { StudioModel studios = repository.GetStudio(id); if (studios != null) { // log.Info("Studio Retrieved Successfully"); return(Ok(studios)); } else { // log.Error("Studio could not be found"); return(NotFound()); } }
public async Task <ActionResult <Studio> > GetStudio(int id) { return(await _repository.GetStudio(id)); }