コード例 #1
0
        public static string loginto(string username, string pass)
        {
            myDAL  obj    = new myDAL();
            string type   = "";
            int    id     = 0;
            int    status = 0;
            string email  = "";
            int    result = obj.loginto(username, pass, ref id, ref type, ref status, ref email);

            HttpContext.Current.Session["id1"] = id;
            if (result == 1 && status == 1)
            {
                HttpContext.Current.Session["Type"] = type;
                HttpContext.Current.Session["id"]   = id;
            }
            if (status == 0)
            {
                return(email);
            }
            else
            {
                return(status.ToString());
            }
        }
コード例 #2
0
        public static string adjustdate(int roomid)
        {
            myDAL obj = new myDAL();

            return(obj.dateadjust(roomid).GetXml());
        }
コード例 #3
0
        public static int bookaroom(string name, string email, string phone, string checkin, string checkout, string comment, int roomid)
        {
            myDAL obj = new myDAL();

            return(obj.bookaroom(name, email, phone, checkin, checkout, comment, roomid));
        }
コード例 #4
0
        public static string adjacentrooms(int id)
        {
            myDAL obj = new myDAL();

            return(obj.adjacentrooms(id).GetXml());
        }
コード例 #5
0
        public static string singlefeatures(int id)
        {
            myDAL obj = new myDAL();

            return(obj.singlefeatures(id).GetXml());
        }
コード例 #6
0
        public static int updatepass(int id, string pass)
        {
            myDAL obj = new myDAL();

            return(obj.updatepass(id, pass));
        }
コード例 #7
0
        public static int updateaccstatus(String id)
        {
            myDAL obj = new myDAL();

            return(obj.updateaccstatus(int.Parse(Decrypt(id.ToString()))));
        }
コード例 #8
0
        public static string gethomerooms()
        {
            myDAL obj = new myDAL();

            return(obj.gethomerooms().GetXml());
        }
コード例 #9
0
        public static int averagerating()
        {
            myDAL obj = new myDAL();

            return(obj.getaveragerating());
        }
コード例 #10
0
        public static string getreviews()
        {
            myDAL obj = new myDAL();

            return(obj.getreviews().GetXml());
        }
コード例 #11
0
        public static string getaccounts(int id)
        {
            myDAL obj = new myDAL();

            return(obj.getaccounts(id).GetXml());
        }
コード例 #12
0
        public static int addreview(string name, string email, string cno, string comment, int rating)
        {
            myDAL obj = new myDAL();

            return(obj.addreview(name, email, cno, comment, rating));
        }
コード例 #13
0
        public static int cancelbooking(int bookid)
        {
            myDAL obj = new myDAL();

            return(obj.cancelbooking(bookid, id));
        }
コード例 #14
0
        public static string getbookings()
        {
            myDAL obj = new myDAL();

            return(obj.getbookings(id).GetXml());
        }