public ActionResult Cancel(int id)
        {
            Fixture fixtureToUpdate = fixtureService.Get(id);

            fixtureToUpdate.IsCancelled = "Y";
            fixtureService.Update(fixtureToUpdate);
            fixtureService.Commit();

            SuccessMessage(FormMessages.FixtureCancelled);
            return(RedirectToAction("Index"));
        }
Пример #2
0
 public ActionResult Create(Fixture @fixture)
 {
     if (ModelState.IsValid)
     {
         fixtureService.Insert(@fixture);
         fixtureService.Commit();
         SuccessMessage(FormMessages.SaveSuccess);
         return(RedirectToAction("Index"));
     }
     return(View(@fixture));
 }
 public void Commit()
 {
     matchResultRepository.Commit();
     fixtureService.Commit();
 }