Пример #1
0
 //Agregar
 public IHttpActionResult Agregar(BE.ReclamoConsultaResponder rec)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest(ModelState));
     }
     DAL.CRUDRefReclamoConsultaResponder oCRUDRec = new DAL.CRUDRefReclamoConsultaResponder();
     try
     {
         oCRUDRec.Agregar(rec);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(Ok(rec));
 }
Пример #2
0
 public IQueryable <BE.ReclamoConsultaResponder> ListarTodas()
 {
     DAL.CRUDRefReclamoConsultaResponder rec = new DAL.CRUDRefReclamoConsultaResponder();
     return(rec.ListarTodas());
 }