/// <summary> /// /// </summary> /// <returns></returns> public IActionResult Catalog() { var products = _productProxy.GetAll(); return(View(products)); }
public JsonResult GetAll() { var response = Task.Run(() => proxy.GetAll()); return(Json(response.Result.List, JsonRequestBehavior.AllowGet)); }