Ejemplo n.º 1
0
        public ActionResult UpdateUser(UpdateUserViewModel model)
        {
            string UserId = User.Identity.GetUserId();

            LogicService cmLogic = new LogicService();

            bool addedSucessfully = cmLogic.UpdateUser(
                model.CompanyName,
                model.Email,
                model.PhoneNumber,
                UserId,
                model.Street,
                model.City,
                model.State,
                model.Zip);


            if (addedSucessfully)
            {
                return(RedirectToAction("Result", "Dashboard", new { statusCode = 0, message = "Updated User Sucessfully" }));
            }
            else
            {
                return(RedirectToAction("Result", "Dashboard", new { statusCode = 1, message = "User Not Updated Sucessfully" }));
            }
        }