Example #1
0
        public Result AddContact(Contact contact)
        {
            var result = new Result();

            var validationResult = ValidateContact(contact);

            if (!validationResult.IsSuccess)
            {
                return(validationResult);
            }

            dataAccess.AddContact(contact);

            return(result);
        }