internal static Domain.Task.Task GenerateDomainInput(TaskInput task) { return(new Domain.Task.Task { Id = task.Id, CreatedAt = task.CreatedAt, Done = task.Done, DoneAt = task.DoneAt, Name = task.Name }); }
public Task <bool> MarkAsDone(Guid userId, TaskInput task) { var taskDomain = GenerateDomainInput(task); return(_taskWriteOnlyRepository.MarkAsDone(userId, taskDomain)); }