public Proveedor Get(string rut)
        {
            Proveedor apiprod = null;

            apiprod = FabricaLogica.getconProveedor().ingresarRut(rut);
            return(apiprod);
        }
 public HttpResponseMessage Put([FromBody] Proveedor apiprod)
 {
     try
     {
         bool operacion = FabricaLogica.getconProveedor().eliminarProveedor(apiprod);
         return(Request.CreateResponse(HttpStatusCode.OK, apiprod));
     }
     catch (Exception ex)
     { return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex)); }
 }
        public List <Proveedor> Get()
        {
            List <Proveedor> listapiprod = FabricaLogica.getconProveedor().listProv();

            return(listapiprod);
        }