Example #1
0
        public ActionResult JoinConfirmed(int id)
        {
            using (var collectService = new CollectsService())
            {
                int userId      = GetUserId();
                var collectUser = collectService.GetCollectUser(id);

                if (ModelState.IsValid)
                {
                    collectService.JoinConfirmed(id, GetUserId());

                    return(RedirectToAction("Details", "Collects", new { id = id }));
                }
            }

            return(HttpNotFound());
        }