public IActionResult GetTalent(int id)
        {
            Talent talent = repository.Get(id);

            if (talent == null)
            {
                return(BadRequest(new { message = "Talent cannot be found!" }));
            }
            return(Ok(talent));
        }
示例#2
0
        public Talent GetTalent(int id)
        {
            Talent item = repository.Get(id);

            if (item == null)
            {
                throw new HttpResponseException(HttpStatusCode.NotFound);
            }
            return(item);
        }
示例#3
0
        public Talent GetTalent(int id)
        {
            Talent talent = repo.Get(id);

            if (talent == null)
            {
                throw new HttpResponseException(HttpStatusCode.NotFound);
            }
            return(talent);
        }
示例#4
0
 public B_Talent Get(int id)
 {
     return(Mapper <Talent, B_Talent> .Map(repo.Get(id)));
 }