public void Delete(string id) { Guid guid; ProductItem item = null; if (Guid.TryParse(id, out guid)) { item = _ProductItemRepo.Get(guid); _ProductItemRepo.Remove(item); } }
public void Delete(string id) { Guid guid; ProductItem item = null; if (Guid.TryParse(id, out guid)) { item = _ProductItemRepo.Get(guid); _ProductItemRepo.Remove(item); } }