public ActionResult Create(TeamCreateEditViewModel vm)
        {
            if (ModelState.IsValid)
            {
                _uow.Teams.Add(vm.Team);
                _uow.Commit();
                return RedirectToAction("Index");
            }

            return View(vm);
        }
        // GET: Teams/Edit/5
        public ActionResult Edit(int? id)
        {
            if (id == null)
            {
                return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
            }
            Team team = _uow.Teams.GetById(id);
            if (team == null)
            {
                return HttpNotFound();
            }

            var vm = new TeamCreateEditViewModel()
            {
                Team = team
            };

            return View(vm);
        }
 // GET: Teams/Create
 public ActionResult Create()
 {
     var vm = new TeamCreateEditViewModel();
     return View(vm);
 }