示例#1
0
        public TaskFormViewModel(Task task , Sprint sprint , User user, Code  code, Story story)
        {
            TimeforingRepository repo = new TimeforingRepository();
            Task = task;

            Sprint = SelectListMaker.SprintsWithSelected(Task);
            User = SelectListMaker.UsersWithSelected(Task);
            Code = SelectListMaker.CodesWithSelected(Task);
            Story = SelectListMaker.StoriesWithSelected(Task);
        }
示例#2
0
        public static List<SelectListItem> UsersWithSelected(User u)
        {
            var items = _repo.FindAllUsers();

            List<SelectListItem> list = new List<SelectListItem>();
            foreach (var item in items)
            {
                SelectListItem i;
                i = new SelectListItem { Value = item.UserID.ToString(), Text = item.Name, Selected = u.UserID == item.UserID };

                list.Add(i);
            }
            return list;
        }
示例#3
0
 partial void UpdateUser(User instance);
示例#4
0
 partial void DeleteUser(User instance);
示例#5
0
 partial void InsertUser(User instance);