コード例 #1
0
        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());
            }
        }
コード例 #2
0
 public async Task <ActionResult <Studio> > GetStudio(int id)
 {
     return(await _repository.GetStudio(id));
 }