public async Task <ActionResult> GetAllProducts() { var products = await dietService.GetAllProduct(); if (products == null) { return(BadRequest()); } return(Ok(new { product = products })); }
public async Task <ActionResult> GetAllProducts() { var products = await dietService.GetAllProduct(); if (products == null) { return(BadRequest()); } return(Ok(new { product = products })); }