/// <summary> /// Getting equipment list for dropdown and opening customer's basket as a partial view /// </summary> /// <param name="customerId">Customer Id</param> /// <returns>Partial View</returns> public async Task <ActionResult> CustomerBasket(int customerId) { ViewBag.CustomerId = customerId; ViewBag.EquipmentList = await equipmentApiService.GetEquipments(); return(PartialView("~/Views/Basket/_CustomerBasketPartial.cshtml")); }
/// <summary> /// Getting equipment list from db /// </summary> public async Task <JsonResult> GetEquipments() { var result = await equipmentApiService.GetEquipments(); return(Json(result.Data)); }