Пример #1
0
        private bool EmptyFields(DTO.Guest newGuest)
        {
            if (string.IsNullOrEmpty(newGuest.FirstNames) ||
                string.IsNullOrEmpty(newGuest.LastName) ||
                string.IsNullOrEmpty(newGuest.HouseNumber) ||
                string.IsNullOrEmpty(newGuest.Street) ||
                string.IsNullOrEmpty(newGuest.City) ||
                string.IsNullOrEmpty(newGuest.Zip))
            {
                _usersMessageService.EmptyFieldsAlert();
                return(true);
            }
            else if (string.IsNullOrEmpty(newGuest.Region))
            {
                newGuest.Region = "NA";
            }

            return(false);
        }