public ActionResult Create(CreateSportModel model)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    var createSport = new Sport
                    {
                        Name        = model.NewSportName,
                        Description = model.NewSportDescription,
                        Rules       = model.NewSportRules
                    };
                    createSport.AddAudit(CurrentUser);
                    DbContext.Sports.Add(createSport);

                    var updateSport = DbContext.AddSportRequests.FirstOrDefault(x => x.AddSportRequestId == model.AddSportRequestId);
                    if (updateSport != null)
                    {
                        updateSport.RequestStatus = AddSportRequestStatus.Accepted;
                        DbContext.AddSportRequests.AddOrUpdate(updateSport);
                    }

                    DbContext.SaveChanges();
                }
                catch (Exception e)
                {
                    ModelState.AddModelError("", "Something went wrong. Please try again");
                    return(RedirectToAction("Create", model.AddSportRequestId));
                }
                return(RedirectToAction("Index", "Home"));
            }
            return(RedirectToAction("Create", model.AddSportRequestId));
        }
        public ActionResult CreateSport(int id)
        {
            var requestModel = DbContext.AddSportRequests.FirstOrDefault(x => x.AddSportRequestId == id);

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

            var createModel = new CreateSportModel
            {
                AddSportRequestId       = id,
                RequestSportName        = requestModel.SportName,
                RequestSportDescription = requestModel.SportDescription,
                RequestSportRules       = requestModel.SportRules
            };

            return(View("Create", createModel));
        }