Exemple #1
0
        /// <summary>
        /// Marks the passed in Task as complete
        /// </summary>
        /// <param name="task">The task to mark as complete</param>
        /// <returns>bool: True = success</returns>
        public async Task <bool> MarkTaskCompleteAsync(TaskQueueEntity task)
        {
            var sucessful = await _taskRepository.UpdateToCompleteAsync(task.Id);

            if (sucessful)
            {
                task.IsCompleted = true;

                return(true);
            }

            return(false);
        }