public IHttpActionResult Get(int?id, string fecha)
 {
     try
     {
         return(Ok(DetFacturaBLL.Ventas(id, fecha)));
     }
     catch (Exception ex)
     {
         return(NotFound());
     }
 }
 public IHttpActionResult Get(int?id)
 {
     try
     {
         return(Ok(DetFacturaBLL.List(id)));
     }
     catch (Exception ex)
     {
         return(NotFound());
     }
 }
 public IHttpActionResult Post(DETALLE_FACTURA d)
 {
     try
     {
         DetFacturaBLL.Create(d);
         return(Content(HttpStatusCode.OK, "Message: \n\tCompra Exitosa" + "\nGracias por preferirnos"));
     }
     catch (Exception ex)
     {
         return(Content(HttpStatusCode.BadRequest, "Solicitud no procesada"));
     }
 }