public IActionResult Delete(string name) { if (string.IsNullOrWhiteSpace(name)) { return(NotFound(name)); } if (_mProductStore.GetByName(name) == null) { return(NotFound(name)); } _mProductStore.Remove(name); return(Ok(name)); }