public ActionResult Put(Models.Entity.Evento evento)
        {
            try
            {
                var response = _eventoApp.Put(evento);
                if (!response.IsSuccessStatusCode)
                {
                    return(ErrorMessage(response.Content.ReadAsStringAsync().Result));
                }

                return(new EmptyResult());
            }
            catch (Exception ex)
            {
                return(ErrorMessage(ex.Message));
            }
        }
Exemple #2
0
 public HttpResponseMessage Put(Models.Entity.Evento evento)
 {
     return(_request.Put(UriWebApi.Evento, evento));
 }