Example #1
0
        public int ManageContact(int moviment)
        {
            ContactDAL Contact = new ContactDAL();

            _fullname = _name + " " + _father + " " + " " + _mother;

            string Result = Contact.ManageContact(moviment, _fullname, _father, _mother, _name, _phonenumber, _cellphone, _email, _number, _contactnumber, _job, _company, _sendmail);

            if (Result != null && Convert.ToInt32(Result) > 0)
            {
                return(Convert.ToInt32(Result));
            }
            else if (moviment == 2)
            {
                return(1);
            }

            return(0);
        }