Ejemplo n.º 1
0
        public clsRegstrResponse Register_Add(clsRegistration obj)
        {
            clsRegstrResponse objrgstresponse = new clsRegstrResponse();
            clsRegistration   objregister     = new clsRegistration();

            int i = dlobj.Register_Add(obj);

            if (i > 0)
            {
                objrgstresponse.objresponse = new clsResponse()
                {
                    ResponseCode    = 100,
                    ResponseMessage = "Authentication Success"
                };
            }
            else
            {
                objrgstresponse.objresponse = new clsResponse()
                {
                    ResponseCode    = 101,
                    ResponseMessage = "Authentication Fail"
                };
            }
            return(objrgstresponse);
        }
Ejemplo n.º 2
0
        public int Register_Add(clsRegistration objregister)
        {
            int val = 0;

            try
            {
                using (SqlConnection SqlCon = new SqlConnection(clsCommon.ConnectionString))
                {
                    using (SqlCommand Command = new SqlCommand("SP_ScheduledSMS_Register_ADD", SqlCon))
                    {
                        Command.CommandType = CommandType.StoredProcedure;
                        Command.Parameters.AddWithValue("@UserName", objregister.UserName);
                        Command.Parameters.AddWithValue("@Email", objregister.Email);
                        Command.Parameters.AddWithValue("@ContactNo", objregister.ContactNo);
                        Command.Parameters.AddWithValue("@Password", objregister.Password);
                        Command.Parameters.AddWithValue("@ConfirmPassword", objregister.ConfirmPassword);
                        SqlCon.Open();
                        val = Command.ExecuteNonQuery();
                        SqlCon.Close();
                    }
                }
            }
            catch (Exception ex)
            {
                throw (ex);
            }
            return(val);
        }
Ejemplo n.º 3
0
        public clsRegstrResponse Registarion_ADD(clsRegistration obj)
        {
            clsRegstrResponse objresponse = objbl.Register_Add(obj);

            return(objresponse);
        }