//更新一筆記錄 public static void Update(icdtTest icdttests) { Update(new List<icdtTest>() { icdttests }); }
//新增單一記錄 public static void Create(icdtTest icdttest) { Create(new List<icdtTest>() { icdttest }); }
private icdtTestModel DomainToModel(icdtTest icdtTest) { icdtTestModel viewModel = new icdtTestModel(); viewModel = AutoMapperConfig.Mapper.Map<icdtTest, icdtTestModel>(icdtTest); return viewModel; }
//刪除一筆記錄 public static void Remove(icdtTest icdttest) { Remove(new List<icdtTest>() { icdttest }); }
private icdtTest ModelToDomain(icdtTestModel viewModel) { icdtTest icdtTest = new icdtTest(); icdtTest = AutoMapperConfig.Mapper.Map<icdtTestModel, icdtTest>(viewModel); return icdtTest; }