예제 #1
0
        public async Task <ActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(RedirectToAction("Index", "Posts"));
            }

            var profile = await _profilesService.GetProfileByUserId(id.Value, User.Identity.GetUserId());

            return(View(profile));
        }