LaaProduction http/sql packages in use. Solution refactored.
This commit is contained in:
@@ -1,21 +1,20 @@
|
||||
namespace LaaProductionWeb.Services
|
||||
{
|
||||
using FluentSQLClient.Interfaces;
|
||||
|
||||
using LaaProductionSQL.Interfaces;
|
||||
using LaaProductionWeb.Services.Interfaces;
|
||||
using LaaProductionWeb.Services.Models;
|
||||
|
||||
public class ApprovalsService : IApprovalsService
|
||||
{
|
||||
private readonly IFluentSQLConnection fluentSQL;
|
||||
private readonly ISQLConnection sqlConnection;
|
||||
|
||||
public ApprovalsService(IFluentSQLConnection fluentSQL)
|
||||
=> this.fluentSQL = fluentSQL;
|
||||
public ApprovalsService(ISQLConnection sqlConnection)
|
||||
=> this.sqlConnection = sqlConnection;
|
||||
|
||||
public Result Add(ProductionApproval approval)
|
||||
{
|
||||
var message = string.Empty;
|
||||
var rowsAffected = this.fluentSQL
|
||||
var rowsAffected = this.sqlConnection
|
||||
.CreateCommand($@"
|
||||
INSERT INTO [ProductionSkipAndLifeTimeInfo] (
|
||||
[OrderNumber]
|
||||
|
||||
Reference in New Issue
Block a user