Ejemplo n.º 1
0
        public HttpResponseMessage GuardarIncidente(EDIncidente Inidente)
        {
            HttpResponseMessage response = null;

            try
            {
                LNIncidente logica   = new LNIncidente();
                EDIncidente inicente = logica.GuardarIncidente(Inidente);
                if (inicente != null)
                {
                    response = Request.CreateResponse <EDIncidente>(HttpStatusCode.Created, inicente);
                    return(response);
                }
                else
                {
                    response = Request.CreateResponse(HttpStatusCode.ExpectationFailed);
                    return(response);
                }
            }
            catch (Exception ex)
            {
                response = Request.CreateResponse(HttpStatusCode.InternalServerError);
                return(response);
            }
        }
Ejemplo n.º 2
0
 public EDIncidente GuardarIncidente(EDIncidente inidente)
 {
     return(ii.GuardarIncidente(inidente));
 }