示例#1
0
        public void UpdateHug(Hug model)
        {
            var itemToUpdate = _hugs.Single(h => h.Id == model.Id);

            itemToUpdate.Id      = model.Id;
            itemToUpdate.From    = model.From;
            itemToUpdate.To      = model.To;
            itemToUpdate.Reason  = model.Reason;
            itemToUpdate.Created = model.Created;
        }
示例#2
0
 public void AddHug(Hug hug)
 {
     _hugs.Add(hug);
 }
示例#3
0
 public void InsertHug(Hug model)
 {
     _hugs.Add(model);
 }
示例#4
0
 public void DeleteHug(Hug hug)
 {
     _hugs.Remove(hug);
 }