Пример #1
0
        //
        // GET: /Admin/BadgeSubmission/Details/5
        public ActionResult Review(Guid id)
        {
            var badgeSubmission = RepositoryFactory.BadgeSubmissionRepository.GetNullableById(id);

            if (badgeSubmission == null)
            {
                return(HttpNotFound());
            }

            var model = new BadgeSubmissionViewModel
            {
                Badge             = badgeSubmission.Badge,
                Submission        = badgeSubmission,
                BadgeCriteria     = badgeSubmission.Badge.BadgeCriterias.ToList(),
                BadgeFulfillments = badgeSubmission.BadgeFulfillments.ToList()
            };

            return(View(model));
        }
Пример #2
0
        //
        // GET: /Admin/BadgeSubmission/Details/5
        public ActionResult Review(Guid id)
        {
            var badgeSubmission = RepositoryFactory.BadgeSubmissionRepository.GetNullableById(id);

            if (badgeSubmission == null) return HttpNotFound();

            var model = new BadgeSubmissionViewModel
                {
                    Badge = badgeSubmission.Badge,
                    Submission = badgeSubmission,
                    BadgeCriteria = badgeSubmission.Badge.BadgeCriterias.ToList(),
                    BadgeFulfillments = badgeSubmission.BadgeFulfillments.ToList()
                };

            return View(model);
        }