Ejemplo n.º 1
0
 public ActionResult CompanyProfile(int id)
 {
     List<Company> lstcompany = new List<Company>();
     ResponseObjectForAnything responseObject = new ResponseObjectForAnything();
     MasterlistEngine masterEngine = new MasterlistEngine();
     string response = masterEngine.GetCompanyListJSON(Request.Cookies["sessionkey"].Value);
     responseObject = (ResponseObjectForAnything)Serializer.JSONStringToObject<ResponseObjectForAnything>(response);
     lstcompany = (List<Company>)Serializer.JSONStringToObject<List<Company>>(responseObject.ResultObjectJSON);
     return PartialView("_CompanyProfile", lstcompany);
     //CompanyProfileComplexModel model = new CompanyProfileComplexModel();
     //model.CompanyId = 1;
     //model.CompanyLogo = "~/assets/img/walmart.png";
     //model.CompanyName = "WallMart Group Inc.";
     //model.Description = " Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.";
     //model.CompanySupportWeekdaysStartTime = "09:00 AM";
     //model.CompanySupportWeekdaysEndTime = "06:00 PM";
     //model.CompanySupportWeekendsEndTime = "06:00 AM";
     //model.CompanySupportWeekendsStartTime = "09:00 AM";
     //model.Address1 = "WalMart Inc.";
     //model.Address2 = "795 Park Ave, Suite 120";
     //model.Address3 = "Dalal Street";
     //model.City = "Texas";
     //model.StateName = "Texas Repulic";
     //model.PinCode = "94107";
     //model.CompanyEmail = "*****@*****.**";
     //model.CompanyPhone = "000-666-444";
     //model.Latitude = Convert.ToDecimal(76.1111111);
     //model.Longitude = Convert.ToDecimal(76.1111111);
     //return PartialView("_CompanyProfile", model);
 }