Ejemplo n.º 1
0
        private string GetOrderConfirmationMessage(int orderConfirmation, UserModel user)
        {
            try
            {
                var messageResult =
                    string.Format(
                        "Thank you for your recently order.\n Your order confirmation is {0}.\nIt will be shipped to: {1}.\n Address: {2}.\n Email: {3}.\n Phone: {4}.\n",
                        orderConfirmation, user.BusinessName,
                        Utils.GetFormattedAddress(user.Address1, user.Address2, user.City, user.State, user.ZipCode,
                            "USA"), user.Email, user.Phone);

                return messageResult;
            }
            catch (Exception exception)
            {
                return string.Empty;
            }
        }
Ejemplo n.º 2
0
        private ActionResult LogExternalUser(UserModel user)
        {
            var loginProcess = WebSecurity.Login(user.UserId.ToString(), string.Empty);

            Session.Add(Utils.UserKey, user);

            return RedirectToAction("Index", "Reports");
        }
Ejemplo n.º 3
0
        private OrderConfirmation GetOrderConfirmation(int orderConfirmation, UserModel user)
        {
            var confirmation = new OrderConfirmation
            {
                Address =Utils.GetFormattedAddress(user.Address1, user.Address2, user.City, user.State, user.ZipCode, "USA"),
                OrderConfirmationNumber = orderConfirmation,
                Name = user.Name,
                Email = user.Email,
                Phone = user.Phone
            };

            return confirmation;
        }