public List <Producto> GetProductos() { var alga = _stockServices.GetAllProductos(); List <Producto> ret = new List <Producto>(); foreach (var prd in alga) { Producto prdRet = new Producto() { IDProducto = (int)prd.Id, Descripcion = prd.Descripcion, ProductType = prd.ProductType, Categoria = prd.Categoria }; ret.Add(prdRet); } return(ret); }