Exemplo n.º 1
0
        /// <summary>
        /// adminVerify method is to pass the input credentials that is sent from presentation layer to data access layer through business layer to check
        /// whether they are correct or not.
        /// </summary>
        /// <param name="name">username</param>
        /// <param name="pass">password</param>
        /// <returns></returns>
        public static bool AdminVerify(string name, string pass)
        {
            try
            {
                bool adminVerified = false;



                //To send this credentails to adminverify method of CustomerDAL i.e customer data access layer.
                adminVerified = CustomerDAL.AdminVerify(name, pass);
                return(adminVerified);
            }
            catch (CustomerManagementException ex)
            {
                throw new CustomerManagementException(ex.Message);
            }
            catch (Exception)
            {
                throw;
            }
        }