public DetailProduct()
 {
     detailProduct = new SANPHAMModel();
     detailProductPromotion = 0;
     manufactoryName = "";
     typeProduct = "";
     relativeList = new List<SANPHAMModel>();
     relativeListPromotion = new List<double>();
     subjectDescription = new List<string>();
     contentDescription = new List<string>();
 }
        public SANPHAMModel GetProduct(string id)
        {
            SANPHAMModel detail = new SANPHAMModel();

            c.BaseAddress = new Uri(url);
            c.DefaultRequestHeaders.Accept.Clear();
            c.DefaultRequestHeaders.Accept.Add(
                new MediaTypeWithQualityHeaderValue("application/json")
            );

            HttpResponseMessage response = c.GetAsync("api/product/GetByID/" + id).Result;
            detail = response.Content.ReadAsAsync<SANPHAMModel>().Result;
            return detail;
        }
 public NewProduct()
 {
     newproduct = new SANPHAMModel();
     promotion = 0;
 }
 public SpecialProduct()
 {
     specialproduct = new SANPHAMModel();
     promotion = 0;
 }