public ActionResult Create(FundApplication fundapplication)
        {
            if (ModelState.IsValid)
            {
                fundapplication.Status = "n";
                fundapplication.Date = DateTime.Today;
                fundapplication.ApplicantUserName = User.Identity.Name;
                unitOfWork.Applications.Add(fundapplication);
                unitOfWork.SaveChanges();
                return RedirectToAction("Index");
            }

            ViewBag.ClubId = new SelectList(unitOfWork.Clubs.ToList(), "Id", "Id", fundapplication.ClubId);
            ViewBag.Id = new SelectList(unitOfWork.ApplicationRejectReasons.ToList(), "ApplicationId", "Reason", fundapplication.Id);
            return View(fundapplication);
        }
 public ActionResult Edit(FundApplication fundapplication)
 {
     if (ModelState.IsValid)
     {
         unitOfWork.FundApplications.Update(fundapplication);
         unitOfWork.SaveChanges();
         return RedirectToAction("Index");
     }
     ViewBag.ClubId = new SelectList(unitOfWork.Clubs.ToList(), "Id", "Id", fundapplication.ClubId);
     ViewBag.ApplicantUserName = new SelectList(unitOfWork.Users.ToList(), "UserName", "Name", fundapplication.ApplicantUserName);
     ViewBag.Id = new SelectList(unitOfWork.ApplicationRejectReasons.ToList(), "ApplicationId", "Reason", fundapplication.Id);
     return View(fundapplication);
 }