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; }
public void AddHug(Hug hug) { _hugs.Add(hug); }
public void InsertHug(Hug model) { _hugs.Add(model); }
public void DeleteHug(Hug hug) { _hugs.Remove(hug); }