Exemplo n.º 1
0
 public static PaymentTypesBll ToBll(this PaymentTypesDal paymentTypesDal)
 {
     return(new PaymentTypesBll()
     {
         Id = paymentTypesDal.Id,
         Type = paymentTypesDal.Type
     });
 }
Exemplo n.º 2
0
        public PaymentTypesDal GetById(int id)
        {
            var sql = @"SELECT * FROM dbo.PaymentTypes WHERE Id = @identifier";

            PaymentTypesDal paymentType = new PaymentTypesDal();

            using (IDbConnection connection = new SqlConnection(_connectionString))
            {
                paymentType = connection.Query <PaymentTypesDal>(sql, new
                {
                    identifier = id
                }).ToList().FirstOrDefault();
            }

            return(paymentType);
        }
Exemplo n.º 3
0
 public bool Update(PaymentTypesDal item)
 {
     throw new NotImplementedException();
 }