public IEnumerable <DateFormateDto> GetDateFormates() { return(_settingProvider.GetDateFormates() .Select(x => new DateFormateDto { DateFormatID = x.DateFormatID, DateTimeFormate = x.DateTimeFormat }) .ToList()); }