public static PaymentTypesBll ToBll(this PaymentTypesDal paymentTypesDal) { return(new PaymentTypesBll() { Id = paymentTypesDal.Id, Type = paymentTypesDal.Type }); }
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); }
public bool Update(PaymentTypesDal item) { throw new NotImplementedException(); }