public DataTable bindroomddl(int departureid, string packageid) { try { blsr.action = "GetcruiseRooms"; blsr.PackageId = packageid; blsr.DepartureId = departureid; if (Session["UserCode"] != null) { blsr._iAgentId = Convert.ToInt32(Session["UserCode"].ToString()); } DataTable dt = new DataTable(); dt = dlsr.GetCruiseRooms(blsr); if (dt != null) { return(dt); } else { return(null); } } catch { return(null); } }
public DataTable bindroomddl(string pakackageid, int departureId) { chk.name = "rajib"; chk.surname = "sarkar"; try { //using (var client = new HttpClient()) //{ // Student p = new Student { StudName = "Sourav", StudCourse = "Kayal" }; // client.BaseAddress = new Uri("http://localhost:5024/"); // var response = client.PostAsJsonAsync("api/Values", chk).Result; // if (response.IsSuccessStatusCode) // { // Console.Write("Success"); // } // else // Console.Write("Error"); //} blsr.action = "GetcruiseRooms"; blsr.PackageId = pakackageid; blsr.DepartureId = departureId; //blsr._iAgentId = usercode; dt = new DataTable(); dt = dlsr.GetCruiseRooms(blsr); if (dt != null) { return(dt); } else { return(null); } } catch { return(null); } }