public async Task <IEnumerable <SchedulingDataModel> > GetAll(Guid userId) { IEnumerable <Scheduling> schedules = null; var type = await GetTypeUser(userId); if (type is ETypeUser.Attendant or ETypeUser.Admin) { schedules = await _schedulingRepository.GetAllAsync(); }