public ResultMessage Update(Supplier original, Supplier toUpdate) { var result = _da.Update(original, toUpdate) > 0; var message = result ? "" : "err"; return(new ResultMessage(result, message)); }
public decimal Update(SupplierInfo supplier) { decimal ck = -1; try { SupplierDA _da = new SupplierDA(); ck = _da.Update(supplier); } catch (Exception ex) { NaviCommon.Common.log.Error(ex.ToString()); } return(ck); }