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); } }
public EDIncidente GuardarIncidente(EDIncidente inidente) { return(ii.GuardarIncidente(inidente)); }