Ejemplo n.º 1
0
        public ActionResult Index(Guid?id)
        {
            id = id ?? User.TryGetPrincipal().UserId;
            var model = Mapper.Map <PublicProfileModel>(_profileReader.GetPublicProfile(id.Value));

            model.CanEdit = id == User.TryGetPrincipal().UserId;
            return(View("PublicProfile", model));
        }