Exemplo n.º 1
0
 public ListNoteItemResult Find(long id)
 {
     Data.Entity.ListNoteItem entity = Dao.Find(id);
     return(ResultConverter.Convert(entity));
 }
Exemplo n.º 2
0
 public void Update(long id, ListNoteItemParam param)
 {
     Data.Entity.ListNoteItem oldEntity = Dao.Find(id);
     Data.Entity.ListNoteItem newEntity = ParamConverter.Convert(param, oldEntity);
     Dao.Update(newEntity);
 }
Exemplo n.º 3
0
 public ListNoteItemResult Create(ListNoteItemParam param)
 {
     Data.Entity.ListNoteItem entity = ParamConverter.Convert(param, null);
     entity = Dao.Save(entity);
     return(ResultConverter.Convert(entity));
 }
Exemplo n.º 4
0
 public Data.Entity.ListNoteItem Update(Data.Entity.ListNoteItem entity)
 {
     Delete(entity.Id);
     Save(entity);
     return(entity);
 }
Exemplo n.º 5
0
 public Data.Entity.ListNoteItem Save(Data.Entity.ListNoteItem entity)
 {
     ListNoteItemData.Data.Add(entity.Id, entity);
     return(entity);
 }
Exemplo n.º 6
0
 public void Delete(Data.Entity.ListNoteItem entity)
 {
     ListNoteItemData.Data.Remove(entity.Id);
 }
Exemplo n.º 7
0
 public void Delete(long id)
 {
     Data.Entity.ListNoteItem entity = Find(id);
     Delete(entity);
 }