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); }
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; } } }
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(); } } }
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(); } } }
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(); } } } }