public string CreateOrUpdate(CommonOrgBusinessArea model) { var get = _repo.Get(model.BACode); if (get == null) { _repo.Insert(model); } else { _repo.Update(model); } return(model.BACode); }
public void Update(CommonOrgBusinessArea model) { _repo.Update(model); }
public string Create(CommonOrgBusinessArea model) { _repo.Insert(model); return(model.BACode); }