Beispiel #1
0
        public static void ChangeOwnerById(Guid taskId, Guid newOwnerId)
        {
            var task = AccessBDTasks.GetTaskById(taskId);

            task.Owner = newOwnerId;
            AccessBDTasks.UpdateTask(task);
        }
Beispiel #2
0
        public static void SetUnActiveState(Guid id)
        {
            var task = AccessBDTasks.GetTaskById(id);

            task.Status = Status.Open;
            AccessBDTasks.UpdateTask(task);
        }
Beispiel #3
0
        public static void Resolve(Guid id)
        {
            var task = AccessBDTasks.GetTaskById(id);

            task.Status = Status.Resolved;
            AccessBDTasks.UpdateTask(task);
            AccessBDTasks.AddNewResolvedTask(AccessBDTasks.GetTaskById(id));
        }
Beispiel #4
0
 public static Task GetTaskById(Guid id)
 {
     return(AccessBDTasks.GetTaskById(id));
 }