public IActionResult Bus() { string QRFID = Request.Query["QRFId"].ToString(); string SaveType = Convert.ToString(Request.Query["SaveType"]); string PositionId = Request.Query["PositionId"]; bool IsClone = Convert.ToBoolean(Request.Query["IsClone"]); BusViewModel model = new BusViewModel(); try { List <ProductType> lst = new List <ProductType>(); lst.Add(new ProductType { ProdType = "LDC" }); lst.Add(new ProductType { ProdType = "Coach" }); PositionGetReq objPositionGetReq = new PositionGetReq() { QRFID = QRFID, ProductType = lst, PositionId = PositionId, Type = "bus", IsClone = IsClone }; model = positionMapping.GetBusDetails(_configuration, token, objPositionGetReq); model.MenuViewModel.PositionId = PositionId; if (string.IsNullOrEmpty(PositionId)) { if (!string.IsNullOrEmpty(SaveType) && SaveType.ToLower() == "full") { model.SaveType = "success"; return(PartialView("_Bus", model)); } else { return(View(model)); } } else { return(PartialView("_Bus", model)); } } catch (Exception ex) { throw; } return(View(model)); }