public long LogDataEntryTime(DataEntryTimeLog Log) { var logId = new SqlParameter("LogId", Log.LogId); logId.Direction = System.Data.ParameterDirection.InputOutput; Exec("proc_Log_Data_Entry_Time", new SqlParameter("DocumentID", Log.DocumentID), new SqlParameter("UserName", Log.UserName), new SqlParameter("DocumentOpenedDt", (string.IsNullOrEmpty(Log.DocumentOpenedDt) ? DBNull.Value : (object)Log.DocumentOpenedDt)), new SqlParameter("DocumentClosedDt", (string.IsNullOrEmpty(Log.DocumentClosedDt) ? DBNull.Value : (object)Log.DocumentClosedDt)), new SqlParameter("DocumentType", Log.DocumentType), logId, OutputParameter); if (Log.LogId > 0) { return(0); } return(Convert.ToInt64(logId.Value)); }
public long LogDataEntryTime(DataEntryTimeLog Log) { return(_loggerDataAccess.LogDataEntryTime(Log)); }
public long LogDataEntryTime([FromBody] DataEntryTimeLog Data) { return(_dBlogger.LogDataEntryTime(Data)); }