public async Task <IActionResult> List()
        {
            Result <List <ProductDO> > result = _productBL.GetAll();

            result.Html = await PartialView("_List", result).ToString(ControllerContext);

            return(Json(result));
        }
 public IEnumerable <Product> Products()
 {
     try
     {
         return(productBL.GetAll());
     }
     catch (Exception e)
     {
         Logger.Log.Error(e.StackTrace);
         return(null);
     }
 }