public async Task <IResponseWrapper> AddTask(int idProfile, TaskEntity task) { try { var response = await localDataSource.AddTask(idProfile, TaskMapper.ConvertToDto(task)); return(new Success <bool>(response)); } catch (Exception e) { return(new Error(e.Message)); } }