public List <ProveedorType> GetAllTypes() { List <ProveedorType> retList = new List <ProveedorType>(); foreach (var type in _productoServices.GetAllTypes()) { retList.Add(new ProveedorType() { Code = type.Code, Descripcion = type.Descripcion }); } return(retList); }