예제 #1
0
        public ActionResult Email(int id = 0)
        {
            var userId = User.Identity.GetUserId();

            var email = id == 0 ?
                        _emailRepository.GetNewEmail(userId) :
                        _emailRepository.GetEmail(userId, id);


            var editEmail = PrepareEmailVm(email, userId);

            return(View(editEmail));
        }