コード例 #1
0
 public Data.Entity.Notification Save(Data.Entity.Notification entity)
 {
     NotificationData.Data.Add(entity.Id, entity);
     return(entity);
 }
コード例 #2
0
 public Data.Entity.Notification Update(Data.Entity.Notification entity)
 {
     Delete(entity.Id);
     Save(entity);
     return(entity);
 }
コード例 #3
0
 public void Delete(Data.Entity.Notification entity)
 {
     NotificationData.Data.Remove(entity.Id);
 }
コード例 #4
0
 public void Delete(long id)
 {
     Data.Entity.Notification entity = Find(id);
     Delete(entity);
 }
コード例 #5
0
 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);
 }
コード例 #6
0
 public NotificationResult Find(long id)
 {
     Data.Entity.Notification entity = Dao.Find(id);
     return(ResultConverter.Convert(entity));
 }
コード例 #7
0
 public NotificationResult Create(NotificationParam param)
 {
     Data.Entity.Notification entity = ParamConverter.Convert(param, null);
     entity = Dao.Save(entity);
     return(ResultConverter.Convert(entity));
 }