public static ScrumCollectionViewModel BuildByDateOfScrumDesc(int productId, int selectedSprintId)
        {
            ScrumTimeEntities scrumTimeEntities = new ScrumTimeEntities();
            ScrumCollectionViewModel scrumCollectionViewModel = new ScrumCollectionViewModel(selectedSprintId);
            if (selectedSprintId > 0)
            {
                Sprint sprint = scrumTimeEntities.Sprints.First<Sprint>(s => s.SprintId == selectedSprintId);
                var results = from s in sprint.Scrums
                              orderby s.DateOfScrum ascending
                              select s;
                List<Scrum> scrums = results.ToList<Scrum>();
                scrumCollectionViewModel.Scrums = scrums;
            }
            scrumCollectionViewModel.Usernames = new List<string>();
            AccountMembershipService membershipService = new AccountMembershipService();
            MembershipUserCollection membershipUserCollection = membershipService.GetAllUsers();
            foreach (MembershipUser user in membershipUserCollection)
            {
                scrumCollectionViewModel.Usernames.Add(user.UserName);
            }

            return scrumCollectionViewModel;
        }
        public virtual ActionResult Edit(int id)
        {
            Scrum scrum = _ScrumService.GetScrumById(id);
            if (scrum == null)  // new scrum
            {
                scrum = new Scrum()
                {
                    DateOfScrum = DateTime.Now,
                    SprintId = SessionHelper.GetCurrentSprintId(User.Identity.Name, Session)
                };
                scrum = _ScrumService.GenerateNewScrumDetails(SessionHelper.GetCurrentSprintId(User.Identity.Name, Session), scrum);
            }

            IMembershipService membershipService = new AccountMembershipService();
            ScrumViewModel scrumViewModel = new ScrumViewModel()
            {
                ScrumModel = scrum,
                MemberUsernames = membershipService.GetAlphabeticalUsernameList()
            };
            scrumViewModel.MemberUsernames.Insert(0, AccountMembershipService.UNASSIGNED);

            return PartialView(scrumViewModel);
        }