public InvoiceLogStored AddInvoiceLogStored(InvoiceLogStored item)
        {
            string exception = String.Empty;

            try
            {
                var documentos = new InvoiceLogStored
                {
                    opcion    = item.opcion,
                    prefix    = item.prefix,
                    number    = item.number,
                    response  = item.response,
                    respuesta = item.respuesta
                };

                rv.InvoiceLogStoreds.Add(documentos);
                rv.SaveChanges();
                return(documentos);
            }
            catch (Exception ex)
            {
                exception = "Exception Message: " + ex.Message + ". InnerException: " + ex.InnerException.Message;
            }
            return(item);
        }
 public IHttpActionResult Post(InvoiceLogStored item)
 {
     try
     {
         if (item.opcion != 0)
         {
             return(Ok(fac.AddInvoiceLogStored(item)));
         }
         else
         {
             return(Ok(fac.AddInvoiceLogStored(item)));
         }
     }
     catch
     {
         return(StatusCode(HttpStatusCode.BadRequest));
     }
 }