public IActionResult ProfileInfo() { var customerInfo = userInformationService.GetCustomerInfoByCustomerName(User.Identity.Name); if (customerInfo == null) { customerInfo = new CustomerInfo(); } var model = new CustomerViewModel { FirstName = customerInfo.FirstName, LastName = customerInfo.LastName, StreatAddress1 = customerInfo.StreatAddress1, StreatAddress2 = customerInfo.StreatAddress2, City = customerInfo.City, State = customerInfo.State, Zip = customerInfo.Zip, PhoneNumber = customerInfo.PhoneNumber, Email = customerInfo.Email, HowYouKnowAboutUs = customerInfo.HowYouKnowAboutUs, FeedBack = customerInfo.FeedBack, SuggestionsToImprove = customerInfo.SuggestionsToImprove, WillYOuRecomand = customerInfo.WillYOuRecomand, UserId = customerInfo.UserId, Id = customerInfo.Id }; return(View(model)); }