Esempio n. 1
0
        public static ClsReturnValues setLocation(ClsLocation obj, Guid SessionID)
        {
            ClsReturnValues lst = new ClsReturnValues();

            using (var db = new tdoEntities())
            {
                lst = db.uspAddEditLocation(obj.locationID, obj.locationName, obj.regionID, obj.createdByID, SessionID).FirstOrDefault();
            }
            return(lst);
        }
Esempio n. 2
0
 private void BindDineLocationBreadCrumb()
 {
     using (ClsDine ObjDine = new ClsDine())
     {
         using (ClsLocation ObjLocation = new ClsLocation())
         {
             ObjLocation.LocationName = Page.RouteData.Values["locationname"].ToString().Replace("-", " ");
             int lic = ObjLocation.GetLocationID();
             ObjDine.LocationID = lic;
             string str = ObjDine.GetDineLocationBreadCrumb();
             litbreadcrumb.Text = str;
         }
     }
 }
Esempio n. 3
0
 private void GetDineHotelWise()
 {
     using (ClsOurHotels ObjHotel = new ClsOurHotels())
     {
         using (ClsLocation ObjLocation = new ClsLocation())
         {
             ObjLocation.LocationName = Request.Form["LocationName"].Replace("-", " ");
             int lic = ObjLocation.GetLocationID();
             ObjHotel.LocationID = lic;
             string str = ObjHotel.GetLocationHotel();
             //LitLocationDine.Text = str;
             Response.Write(str);
             Response.End();
         }
     }
 }
Esempio n. 4
0
    private void GetDineCuisineWise()
    {
        using (ClsDine ObjDine = new ClsDine())
        {
            using (ClsLocation ObjLocation = new ClsLocation())
            {
                ObjLocation.LocationName = Request.Form["LocationName"].Replace("-", " ");

                int lic = ObjLocation.GetLocationID();
                ObjDine.LocationID   = lic;
                ObjDine.CuisinesType = Request.Form["CuisineType"].Trim();
                string str = ObjDine.GetDineCuisineWiseLocation();
                //LitLocationDine.Text = str;
                Response.Write(str);
                Response.End();
            }
        }
    }
Esempio n. 5
0
 private void GetDineNameWise()
 {
     using (ClsDine ObjDine = new ClsDine())
     {
         using (ClsLocation ObjLocation = new ClsLocation())
         {
             if (Request.Form["orderby"] == "R")
             {
                 ObjLocation.LocationName = Request.Form["LocationName"].Replace("-", " ");
                 int lic = ObjLocation.GetLocationID();
                 ObjDine.LocationID = lic;
                 string str = ObjDine.GetDineNameWiseLocation();
                 //LitLocationDine.Text = str;
                 Response.Write(str);
                 Response.End();
             }
             else
             {
                 Response.Write("done");
                 Response.End();
             }
         }
     }
 }