public Item Create(Item newItem) { Item exists = _repo.Exists("name", newItem.Name); if (exists != null) { throw new Exception("We already have that item"); } newItem.Id = Guid.NewGuid().ToString(); _repo.Create(newItem); return(newItem); }