BinaryStudio.TaskManager.Web.Controllers.ProfileController.Profile C# (CSharp) Method

Profile() public method

The profile.
public Profile ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult
        public ActionResult Profile()
        {
            var userId = this.userProcessor.GetUserByName(User.Identity.Name).Id;
            var model = new ProfileModel
                {
                   UserName = this.userProcessor.GetUserByName(User.Identity.Name).UserName,
                    Email = this.userProcessor.GetUser(userId).Email,
                   ImageData = this.userProcessor.GetUser(userId).ImageData
                };
            return this.View(model);
        }