Example #1
0
        public async Task <CompleteTaskForMemberCommandResult> CompleteTaskForMemberCommandHandler(
            CompleteTaskForMemberCommand command)
        {
            var task = await _taskRepository.ByIdAsync(command.TaskId);

            task.IsComplete = !task.IsComplete;

            var updatingResult = await _taskRepository.UpdateRecordAsync(task);

            return(new CompleteTaskForMemberCommandResult
            {
                IsSucceed = updatingResult != 0
            });
        }
Example #2
0
 public Task <CompleteTaskForMemberCommandResult> CompleteTaskForMemberCommandHandler(CompleteTaskForMemberCommand command)
 {
     throw new NotImplementedException();
 }