Exemple #1
0
        public bool Save(Registrations registration)
        {
            try
            {
                RegistrationDAL registrationDAL = new RegistrationDAL();

                if (IsContactNumberExist(registration))
                {
                    throw new Exception("Contact number already exist.");
                }
                else
                {
                    return(registrationDAL.Save(registration));
                }
            }
            catch (Exception)
            {
                throw;
            }
        }