示例#1
0
 internal string GetUserNameFromState(State state)
 {
     return db.Users.Single(u => u.Id == state.UserId).Name;
 }
示例#2
0
 public UserTaskViewModel(TaskItem task, State state, DateTime deadline)
 {
     Task = task;
     State = state;
     Deadline = deadline;
 }