// GET: ReleaseBacklog/Create
        public ActionResult Create()
        {
            ViewBag.ProductBacklogID = new SelectList(db.ProductBacklogs, "ID", "Name");

            var releaseBacklog = new ReleaseBacklog();

            releaseBacklog.UserStories = new List <UserStory>();

            PopulateAssignedUserStories(releaseBacklog);

            // hr interface method has to be given here
            //ViewBag.ScrumMasters = db.Employees.ToList()
            //                                .Where(e => e.Position.EmpPosition == "Senior Software Engineer")
            //                                .Select(
            //                                    e => new { ID = e.ID, Name = e.FirstName + ' ' + e.LastName }
            //                                );
            HRInterface hr = new clsHRFacade();

            ViewBag.ScrumMasters = hr.GetScrumMasters();

            return(View());
        }
        // GET: ReleaseBacklog/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            // hr interface method has to be given here
            //ViewBag.ScrumMasters = db.Employees.ToList()
            //                    .Where(e => e.Position.EmpPosition == "Senior Software Engineer")
            //                    .Select(
            //                        e => new { ID = e.ID, Name = e.FirstName + ' ' + e.LastName }
            //                    );

            HRInterface hr = new clsHRFacade();

            ViewBag.ScrumMasters = hr.GetScrumMasters();


            //ReleaseBacklog releaseBacklog = db.ReleaseBacklogs.Find(id);
            ReleaseBacklog releaseBacklog = db.ReleaseBacklogs
                                            .Include(r => r.UserStories)
                                            .Where(r => r.ID == id)
                                            .Single();

            PopulateAssignedUserStories(releaseBacklog);

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

            ViewBag.ProductBacklogID = new SelectList(db.ProductBacklogs, "ID", "Name", releaseBacklog.ProductBacklogID);

            return(View(releaseBacklog));
        }