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