Exemplo n.º 1
0
        public Tuple <int, string> RemovePersonById(Guid id)
        {
            Person person = exampleRepository.SelectPerson(id);

            if (person == null)
            {
                return(new Tuple <int, string>(-1, ""));
            }
            exampleRepository.DeletePerson(id);
            return(new Tuple <int, string>(1, person.Name + " " + person.Surname));
        }