public static ClsReturnValues setRegister(ClsRegister obj) { ClsReturnValues lst = new ClsReturnValues(); using (var db = new tdoEntities()) { lst = db.uspAddEditRegister(obj.tdoRegisterID, obj.jobNumber, obj.dateReceived, obj.expiryDate, obj.status, obj.cargoTypeID, obj.fileRef, obj.destinationID, obj.terminalID, obj.containerNo, obj.returnTerminal, obj.truckID, obj.tdoReceiptDate, obj.schDelDate, obj.loadingTime, obj.dispatchTime, obj.remarks, obj.createdByID, obj.sessionID).FirstOrDefault(); } return(lst); }
public static ClsReturnValues setRegister(ClsRegister obj) { ClsReturnValues lst = new ClsReturnValues(); using (var db = new tdoEntities()) { lst = db.uspAddEditRegister(obj.tdoRegisterID,obj.jobNumber,obj.dateReceived,obj.expiryDate,obj.status,obj.cargoTypeID,obj.fileRef,obj.destinationID, obj.terminalID,obj.containerNo,obj.returnTerminal,obj.truckID,obj.tdoReceiptDate,obj.schDelDate,obj.loadingTime,obj.dispatchTime, obj.remarks,obj.createdByID,obj.sessionID).FirstOrDefault(); } return lst; }