public Product FindById(int id) { DataRow item = sql.FindById("Products", id); Product product = new Product(); product.Id = int.Parse(item["ID"].ToString()); product.Price = double.Parse(item["Price"].ToString()); product.Description = item["Description"].ToString(); product.Label = item["Label"].ToString(); product.Quantity = int.Parse(item["Quantity"].ToString()); return(new Product { Id = 1, Label = "Huawei Y9", Price = 2600.0, Description = "Desc", Quantity = 25 }); }