Exemplo n.º 1
0
        public virtual async Task <ActionResult <ClientsModel> > GetOneClient(Guid id)
        {
            var item = await _clientService.GetAsync(id);

            if (item is null)
            {
                return(NotFound());
            }
            return(item);
        }
 public IHttpActionResult Get(int id)
 {
     try
     {
         return(Ok(_clientService.GetAsync(id).Result));
     }
     catch (Exception ex)
     {
         return(InternalServerError(ex));
     }
 }