public UserDetailsFullVM GetAllDetails() { UserDetailsFullVM user = new UserDetailsFullVM(); string username = HttpContext.Current.User.Identity.Name; int userId = _userDL.GetUserId(username); user.PersonalDetails = _userDL.GetUserDetails(userId); user.EmploymentDetails = _userDL.GetUserEmploymentDetails(userId); user.BankDetails = _userDL.GetUserBankDetails(userId); return(user); }
public IHttpActionResult GetAll() { UserDetailsFullVM user = _userBL.GetAllDetails(); return(Ok(user)); }
public ConfirmQuote CreateConfirmQuoteObject(GetQuote quote, GetResponse allData, UserDetailsFullVM userData) { ConfirmQuote confirmQuoteDetails = new ConfirmQuote(); confirmQuoteDetails.User = userData; confirmQuoteDetails.Car = allData.Cars.AsQueryable().Where(x => x.CarId == quote.CarId).First(); confirmQuoteDetails.Mileage = allData.Mileages.AsQueryable().Where(x => x.MileageId == quote.MileageId).First(); confirmQuoteDetails.PaybackTime = allData.PaybackTimes.AsQueryable().Where(x => x.MonthId == quote.MonthId).First(); confirmQuoteDetails.Price = quote.Price; return(confirmQuoteDetails); }