BinaryStudio.TaskManager.Logic.Core.TaskProcessor.CloseTask C# (CSharp) Method

CloseTask() public method

The close current task.
public CloseTask ( int taskId ) : void
taskId int /// The task id. ///
return void
        public void CloseTask(int taskId)
        {
            var taskToBeClosed = this.humanTaskRepository.GetById(taskId);
            var now = DateTime.Now;
            taskToBeClosed.Closed = now;
            this.humanTaskRepository.Update(taskToBeClosed);
            this.reminderProcessor.DeleteRemindersForTask(taskToBeClosed.Id);
        }