Esempio n. 1
0
        public ActionResult MyPastes()
        {
            var userId   = User.Identity.GetUserId();
            var myPastes = _repo.GetPastes(userId);
            List <PasteViewModel> pasteViewModels = new List <PasteViewModel>();

            foreach (var myPaste in myPastes)
            {
                pasteViewModels.Add(_factory.CreatePaste(myPaste));
            }

            return(View(pasteViewModels));
        }