using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace KendoUIMvcApplication1.Models
{
    public class vwSalesQuantityYear
    {
        public vwSalesQuantityYear()
        {
            vwSalesQuantityYear newObject = new vwSalesQuantityYear();
            ID = newObject.ID;
            ProductID = newObject.ProductID;
            Years = newObject.Years;
            Quantity = newObject.Quantity;
        }
        public vwSalesQuantityYear(int newID, int newProductID, int newYears, int newQuantity)
        {
            ID = newID;
            ProductID = newProductID;
            Years = newYears;
            Quantity = newQuantity;
        }

        [Key]
        public int ID { get; set; }  //need it because in the original source code,the data is taken from a sql view,an need a unique ID
        public int ProductID { get; set; }
        public int Years { get; set; }
        public int Quantity { get; set; }
    }
}