public static int Insert(StringBuilder stringBuilder, Entities.RentPayment obj, string email)
        {
            Rent.Entities.RentPaymentNoticeSendLog objRentPaymentNoticeSendLog = new Entities.RentPaymentNoticeSendLog();
            objRentPaymentNoticeSendLog.Created       = DateTime.Now;
            objRentPaymentNoticeSendLog.Message       = stringBuilder.ToString();
            objRentPaymentNoticeSendLog.Uid           = obj.Uid;
            objRentPaymentNoticeSendLog.RentPaymentId = obj.RentPaymentId;
            objRentPaymentNoticeSendLog.Email         = email;
            objRentPaymentNoticeSendLog.Modifed       = null;

            SqlParameter[] _sqlParameters = new SqlParameter[4];
            _sqlParameters[0] = new SqlParameter("@Message", objRentPaymentNoticeSendLog.Message);
            _sqlParameters[1] = new SqlParameter("@Uid", objRentPaymentNoticeSendLog.Uid);
            _sqlParameters[2] = new SqlParameter("@RentPaymentId", objRentPaymentNoticeSendLog.RentPaymentId);
            _sqlParameters[3] = new SqlParameter("@Email", objRentPaymentNoticeSendLog.Email);

            Rent.DataAccess.SqlDataAccess.ISqlDbHelper _iSqlDbHelper = new SqlDbHelper();

            var x = _iSqlDbHelper.ExecuteScalar("RentPaymentNoticeSendLog_Update", CommandType.StoredProcedure,
                                                _sqlParameters);

            return(x);
        }
 public void Update(Entities.RentPaymentNoticeSendLog obj)
 {
     obj.Modifed = DateTime.Now;
     repository.Update(obj);
 }
 public void Insert(Entities.RentPaymentNoticeSendLog obj)
 {
     repository.Insert(obj);
 }