public int Edit(BuildUnitModel model) { var ent = model.ToORMEntity <BuildUnit>(); int re = dbContext.BuildUnit.Update(ent); return(re); }
public int Add(BuildUnitModel model) { BuildUnit ent = model.ToORMEntity <BuildUnit>(); int re = dbContext.BuildUnit.Insert(ent); return(re); }