public JsonResult GetAllProducts() { var products = _products.GetAllProducts(); return(new JsonResult { Data = products, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }
public JsonResult GetAllProducts() { var products = _products.GetAllProducts(); return(new JsonResult { Data = products, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }