public Data.Entity.Notification Save(Data.Entity.Notification entity) { NotificationData.Data.Add(entity.Id, entity); return(entity); }
public Data.Entity.Notification Update(Data.Entity.Notification entity) { Delete(entity.Id); Save(entity); return(entity); }
public void Delete(Data.Entity.Notification entity) { NotificationData.Data.Remove(entity.Id); }
public void Delete(long id) { Data.Entity.Notification entity = Find(id); Delete(entity); }
public void Update(long id, NotificationParam param) { Data.Entity.Notification oldEntity = Dao.Find(id); Data.Entity.Notification newEntity = ParamConverter.Convert(param, oldEntity); Dao.Update(newEntity); }
public NotificationResult Find(long id) { Data.Entity.Notification entity = Dao.Find(id); return(ResultConverter.Convert(entity)); }
public NotificationResult Create(NotificationParam param) { Data.Entity.Notification entity = ParamConverter.Convert(param, null); entity = Dao.Save(entity); return(ResultConverter.Convert(entity)); }