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()); } }
public static string adjustdate(int roomid) { myDAL obj = new myDAL(); return(obj.dateadjust(roomid).GetXml()); }
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)); }
public static string adjacentrooms(int id) { myDAL obj = new myDAL(); return(obj.adjacentrooms(id).GetXml()); }
public static string singlefeatures(int id) { myDAL obj = new myDAL(); return(obj.singlefeatures(id).GetXml()); }
public static int updatepass(int id, string pass) { myDAL obj = new myDAL(); return(obj.updatepass(id, pass)); }
public static int updateaccstatus(String id) { myDAL obj = new myDAL(); return(obj.updateaccstatus(int.Parse(Decrypt(id.ToString())))); }
public static string gethomerooms() { myDAL obj = new myDAL(); return(obj.gethomerooms().GetXml()); }
public static int averagerating() { myDAL obj = new myDAL(); return(obj.getaveragerating()); }
public static string getreviews() { myDAL obj = new myDAL(); return(obj.getreviews().GetXml()); }
public static string getaccounts(int id) { myDAL obj = new myDAL(); return(obj.getaccounts(id).GetXml()); }
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)); }
public static int cancelbooking(int bookid) { myDAL obj = new myDAL(); return(obj.cancelbooking(bookid, id)); }
public static string getbookings() { myDAL obj = new myDAL(); return(obj.getbookings(id).GetXml()); }