//[Authorize(Roles = "Admin,Client")] public ActionResult CompanyProfile(string Id, bool status = false) { string UserId = User.Identity.GetUserId(); UserViewModel userdetails = generic.GetUserDetail(User.Identity.GetUserId()); ViewBag.UserId = userdetails.SubscriberId; ViewBag.UserId = userdetails.SubscriberId; ViewData["UserProfile"] = generic.GetUserDetail(UserId); ViewData["CompanyLogo"] = cms.GetCompanyLogo(userdetails.SubscriberId).FirstOrDefault(); //var plandetail = admin.GetUserplanDetails(userdetails.SubscriberId).Where(c => c.AddOnId == 3).FirstOrDefault(); //ViewData["plandetail"] = plandetail; ViewBag.Id = Id; ViewBag.Result = "Failed"; if (status == true) { ViewBag.Result = "Succeeded"; } var companyprofiles = cms.GetCompanyProfile(userdetails.UserId); ViewData["AddressList"] = cms.GetAddressDetails(userdetails.SubscriberId); if (companyprofiles != null) { PopulateCompanyType(companyprofiles.CompanyType); PopulateCompanySize(companyprofiles.CompanySize); } else { PopulateCompanyType(); PopulateCompanySize(); } return(View(companyprofiles)); }