Ejemplo n.º 1
0
        public override SuccessResult <AbstractCallLog> CallLogUpsert(AbstractCallLog AbstractCallLog)
        {
            SuccessResult <AbstractCallLog> callLog = null;
            var param = new DynamicParameters();

            param.Add("@Id", AbstractCallLog.Id, dbType: DbType.Int32, direction: ParameterDirection.Input);
            param.Add("@CallDate", AbstractCallLog.CallDate, dbType: DbType.String, direction: ParameterDirection.Input);
            param.Add("@CallLogType", AbstractCallLog.Type, dbType: DbType.String, direction: ParameterDirection.Input);
            param.Add("@ContactName", AbstractCallLog.ContactName, dbType: DbType.String, direction: ParameterDirection.Input);
            param.Add("@Notes", AbstractCallLog.Notes, dbType: DbType.String, direction: ParameterDirection.Input);
            param.Add("@FollowUpDate", AbstractCallLog.FollowUpDate, dbType: DbType.String, direction: ParameterDirection.Input);
            //param.Add("@CreatedBy", AbstractCallLog.CreatedBy, dbType: DbType.Int32, direction: ParameterDirection.Input);
            param.Add("@ModifiedBy", AbstractCallLog.ModifiedBy, dbType: DbType.Int32, direction: ParameterDirection.Input);
            param.Add("@TaskId", AbstractCallLog.TaskId, dbType: DbType.Int32, direction: ParameterDirection.Input);
            using (SqlConnection con = new SqlConnection(Configurations.ConnectionString))
            {
                var task = con.QueryMultiple(SQLConfig.CallLogUpsert, param, commandType: CommandType.StoredProcedure);
                callLog      = task.Read <SuccessResult <AbstractCallLog> >().SingleOrDefault();
                callLog.Item = task.Read <CallLog>().SingleOrDefault();
            }
            return(callLog);
        }
Ejemplo n.º 2
0
 public override SuccessResult <AbstractCallLog> CallLogUpsert(AbstractCallLog abstractCallLog)
 {
     return(this.abstractCallLogDao.CallLogUpsert(abstractCallLog));
 }
Ejemplo n.º 3
0
 public abstract SuccessResult <AbstractCallLog> CallLogUpsert(AbstractCallLog abstractCallLog);