コード例 #1
0
 public static string getrooms(string status, int start, int end, string type, string checkin, string checkout)
 {
     if (status.ToLower() == "unapproved")
     {
         try
         {
             if (HttpContext.Current.Session["Type"].ToString().ToLower().Equals("admin"))
             {
                 myDAL obj = new myDAL();
                 return(obj.getrooms(status, start, end, type, checkin, checkout).GetXml());
             }
             else
             {
                 return("0");
             }
         }
         catch
         {
             return("0");
         }
     }
     else
     {
         myDAL obj = new myDAL();
         return(obj.getrooms(status, start, end, type, checkin, checkout).GetXml());
     }
 }