public bool Create(trn_transaction_log trx) { bool rtval = false; try { pEntity.trn_transaction_log_Insert(trx.sales_id, trx.current_status, trx.statusby, trx.DateUpdated ); pEntity.SaveChanges(); rtval = true; } catch (Exception ex) { _err = ex.ToString(); a.logModule = "Sales Logs CS"; a.logError = ex.ToString(); a.DateCreated = DateTime.Now; lg.InsertLog(a); rtval = false; } return(rtval); }
public ObjectResult Search(trn_transaction_log trx) { return(pEntity.trn_transaction_log_Search( trx.statusLog_id, trx.sales_id, trx.current_status, trx.statusby, trx.DateUpdated )); }