public void DeleteData(ModelNotifiedForTag modelNotifiedForTag, out string error) { TagGenericREST TagGenericREST = new TagGenericREST(wpfConfig); DeleteTagView deleteTagView = new DeleteTagView(); Cloner.CopyAllTo(typeof(ModelNotifiedForTag), modelNotifiedForTag, typeof(DeleteTagView), deleteTagView); TagGenericREST.Delete(deleteTagView, out error); }
public void DeleteData(ModelNotifiedForTag modelNotifiedForTag, out string error) { TagBsn bsn = new TagBsn(wpfConfig); TagInfo dbItem = new TagInfo(); Cloner.CopyAllTo(typeof(ModelNotifiedForTag), modelNotifiedForTag, typeof(TagInfo), dbItem); bsn.DeleteByID(dbItem, out error); }
public void AddData(ModelNotifiedForTag modelNotifiedForTag, out string error) { TagGenericREST TagGenericREST = new TagGenericREST(wpfConfig); CreateTagView createTagView = new CreateTagView(); Cloner.CopyAllTo(typeof(ModelNotifiedForTag), modelNotifiedForTag, typeof(CreateTagView), createTagView); TagGenericREST.Insert(createTagView, out error); }
public void SaveData(ModelNotifiedForTag modelNotifiedForTag, out string error) { TagGenericREST TagGenericREST = new TagGenericREST(wpfConfig); UpdateTagView updateTagView = new UpdateTagView(); Cloner.CopyAllTo(typeof(ModelNotifiedForTag), modelNotifiedForTag, typeof(UpdateTagView), updateTagView); TagGenericREST.Update(updateTagView, out error); }
public void AddData(ModelNotifiedForTag modelNotifiedForTag, out string error) { TagBsn bsn = new TagBsn(wpfConfig); TagInfo dbItem = new TagInfo(); Cloner.CopyAllTo(typeof(ModelNotifiedForTag), modelNotifiedForTag, typeof(TagInfo), dbItem); bsn.InsertOne(dbItem, out error); modelNotifiedForTag.NewItem = false; Cloner.CopyAllTo(typeof(TagInfo), dbItem, typeof(ModelNotifiedForTag), modelNotifiedForTag); }
public ModelNotifiedForTag GetTagByID(int TagID, out string error) { error = null; TagBsn bsn = new TagBsn(wpfConfig); TagInfo dbItem = bsn.GetValueByID(TagID); ModelNotifiedForTag item = new ModelNotifiedForTag(); Cloner.CopyAllTo(typeof(TagInfo), dbItem, typeof(ModelNotifiedForTag), item); return(item); }
public ModelNotifiedForTag GetTagByID(int TagID, out string error) { error = null; TagGenericREST TagGenericREST = new TagGenericREST(wpfConfig); GetTagView getTagView = TagGenericREST.GetByPK <GetTagView>(TagID, out error)[0]; ModelNotifiedForTag modelNotifiedForTag = new ModelNotifiedForTag(); Cloner.CopyAllTo(typeof(GetTagView), getTagView, typeof(ModelNotifiedForTag), modelNotifiedForTag); return(modelNotifiedForTag); }