public IActionResult Get(string username) { if ((icart.GetCartItem(username)).Count == 0) { return(BadRequest("No vendor")); } return(Ok(icart.GetCartItem(username))); }
public IActionResult Get(string username) { _log4net.Info("CartController GET Action Method is called"); if ((icart.GetCartItem(username)).Count == 0) { return(BadRequest("No vendor")); } return(Ok(icart.GetCartItem(username))); }