Example #1
0
 public MySampleValue Create(MySampleValue value)
 {
     value.Id    = _store.Count + 1;
     value.Value = "Value" + value.Id;
     _store.Add(value);
     return(value);
 }
Example #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;
        }