using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
namespace HelloWorldMvcApp
public int? Type { get; set; }
public int? Category { get; set; }
public int? Country { get; set; }
public int? Subsidary { get; set; }
public DateTime? Date { get; set; }
public SelectList TypeList { get; set; }
public SelectList CategoryList { get; set; }
public SelectList CountryList { get; set; }
public SelectList SubsidaryList { get; set; }
public int ID { get; set; }
public string Name { get; set; }
public string Category { get; set; }
public class ProductCollection
public int Product_ID { get; set; }
public int ProductType_ID { get; set; }
public string Product_TypeEn { get; set; }
public string Product_TypeAr { get; set; }
public int ProductCategory_ID { get; set; }
public string Product_CategoryEn { get; set; }
public string Product_CategoryAr { get; set; }
public int Country_ID { get; set; }
public string Subsidary_Country { get; set; }
public int Susidary_ID { get; set; }
public string Susidary_NameEn { get; set; }
public string Susidary_NameAr { get; set; }
public string Product_Name_En { get; set; }
public string Product_Description_En { get; set; }
public string Product_Name_Ar { get; set; }
public string Product_Description_Ar { get; set; }
public string Status { get; set; }
public string CreatedBy { get; set; }
public Nullable<System.DateTime> CreatedDate { get; set; }
public string UpdatedBy { get; set; }
public Nullable<System.DateTime> UpdatedDate { get; set; }
public int ID { get; set; }
public string Name { get; set; }
public static class Repository
public static List<Type> FetchTypes()
List<Type> types = new List<Type>()
new Type(){ ID = 1, Name = "Type 1" },
new Type(){ ID = 2, Name = "Type 2" }
public static List<ProductCollection> FetchProducts()
List<ProductCollection> products = new List<ProductCollection>()
new ProductCollection(){ Product_ID = 1, ProductType_ID = 1, Product_CategoryEn = "Category 1", Product_Name_En = "Product 1" },
new ProductCollection(){ Product_ID = 2, ProductType_ID = 2, Product_CategoryEn = "Category 2", Product_Name_En = "Product 2" },
new ProductCollection(){ Product_ID = 3, ProductType_ID = 2, Product_CategoryEn = "Category 1", Product_Name_En = "Product 3" },
new ProductCollection(){ Product_ID = 4, ProductType_ID = 2, Product_CategoryEn = "Category 2", Product_Name_En = "Product 4" },
new ProductCollection(){ Product_ID = 5, ProductType_ID = 1, Product_CategoryEn = "Category 1", Product_Name_En = "Product 5" }