Пример #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());
        }