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

            r.Value    = value.Value;
            r.SomeDate = value.SomeDate;
            r.SomeLong = value.SomeLong;
        }