public async Task <IResponseWrapper> GetTaskById(int idTask) { try { var response = await localDataSource.GetTaskById(idTask); return(new Success <TaskEntity>(TaskMapper.ConvertFromDto(response))); } catch (Exception e) { return(new Error(e.Message)); } }