Exemple #1
0
        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);
        }
Exemple #2
0
        public IHttpActionResult GetAll()
        {
            UserDetailsFullVM user = _userBL.GetAllDetails();

            return(Ok(user));
        }
Exemple #3
0
        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);
        }