public bool AddTask(string name, TimeSpan time) { var task = new Task() { Name = name, Prerequisities = false, Time = time, User = ActualUser, UserId = ActualUser.Id }; task.SetTime(time); _tasksManager.AddTask(task); return(true); }
public bool AddTask(string name, TimeSpan time) { var task = new Task() { Name = name, Prerequisities = false, Time = time, User = ActualUser, UserId = ActualUser.Id }; task.SetTime(time); _tasksManager.AddTask(task); return(true); }