public MySampleValue Create(MySampleValue value) { value.Id = _store.Count + 1; value.Value = "Value" + value.Id; _store.Add(value); return(value); }
public void Update(int id, MySampleValue value) { var r = GetById(id); r.Value = value.Value; r.SomeDate = value.SomeDate; r.SomeLong = value.SomeLong; }