Adding
This commit is contained in:
+39
@@ -0,0 +1,39 @@
|
||||
using LCU.API.Internal.RepoApi.Repos.Persistence;
|
||||
using LCU.API.Internal.RepoApi.Repos.Models.Settings;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Repositories.Settings
|
||||
{
|
||||
public class AccountTypeRepository : BaseRepository, IAccountTypeRepository
|
||||
{
|
||||
|
||||
public AccountTypeRepository(AppDbContext context) : base(context)
|
||||
{
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<AccountType>> ListAllAsync()
|
||||
{
|
||||
return await _context.AccountTypeCodes.ToListAsync();
|
||||
}
|
||||
|
||||
public async Task AddAsync(AccountType accountTypeCodes)
|
||||
{
|
||||
await _context.AccountTypeCodes.AddAsync(accountTypeCodes);
|
||||
}
|
||||
|
||||
public async Task<AccountType> FindByIdAsync(int id)
|
||||
{
|
||||
return await _context.AccountTypeCodes.Where(c => c.ID == id).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
public void Update(AccountType category)
|
||||
{
|
||||
_context.AccountTypeCodes.Update(category);
|
||||
}
|
||||
|
||||
public void Remove(AccountType category)
|
||||
{
|
||||
_context.AccountTypeCodes.Remove(category);
|
||||
}
|
||||
}
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
using LCU.API.Internal.RepoApi.Repos.Models.Settings;
|
||||
using LCU.API.Internal.RepoApi.Repos.Persistence;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Repositories.Settings
|
||||
{
|
||||
public class AllowedStatusChangeRepository : BaseRepository, IAllowedStatusChangeRepository
|
||||
{
|
||||
|
||||
public AllowedStatusChangeRepository(AppDbContext context) : base(context)
|
||||
{
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<AllowedStatusChange>> ListAllAsync()
|
||||
{
|
||||
return await _context.AllowedStatusChanges.ToListAsync();
|
||||
}
|
||||
|
||||
public async Task AddAsync(AllowedStatusChange allowedStatusChanges)
|
||||
{
|
||||
await _context.AllowedStatusChanges.AddAsync(allowedStatusChanges);
|
||||
}
|
||||
|
||||
public async Task<AllowedStatusChange> FindByIdAsync(int id)
|
||||
{
|
||||
return await _context.AllowedStatusChanges.Where(c => c.ID == id).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
public void Update(AllowedStatusChange category)
|
||||
{
|
||||
_context.AllowedStatusChanges.Update(category);
|
||||
}
|
||||
|
||||
public void Remove(AllowedStatusChange category)
|
||||
{
|
||||
_context.AllowedStatusChanges.Remove(category);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
using LCU.API.Internal.RepoApi.Repos.Models.Settings;
|
||||
using LCU.API.Internal.RepoApi.Repos.Persistence;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Repositories.Settings
|
||||
{
|
||||
public class BodyStyleRepository : BaseRepository, IBodyStyleRepository
|
||||
{
|
||||
|
||||
public BodyStyleRepository(AppDbContext context) : base(context)
|
||||
{
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<BodyStyle>> ListAllAsync()
|
||||
{
|
||||
return await _context.BodyStyleCodes.ToListAsync();
|
||||
}
|
||||
|
||||
public async Task AddAsync(BodyStyle bodyStyleCodes)
|
||||
{
|
||||
await _context.BodyStyleCodes.AddAsync(bodyStyleCodes);
|
||||
}
|
||||
|
||||
public async Task<BodyStyle> FindByIdAsync(string id)
|
||||
{
|
||||
return await _context.BodyStyleCodes.Where(c => c.Code.Equals(id)).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
public void Update(BodyStyle category)
|
||||
{
|
||||
_context.BodyStyleCodes.Update(category);
|
||||
}
|
||||
|
||||
public void Remove(BodyStyle category)
|
||||
{
|
||||
_context.BodyStyleCodes.Remove(category);
|
||||
}
|
||||
}
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
using LCU.API.Internal.RepoApi.Repos.Models.Settings;
|
||||
using LCU.API.Internal.RepoApi.Repos.Persistence;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Repositories.Settings
|
||||
{
|
||||
public class CleaningLevelRepository : BaseRepository, ICleaningLevelRepository
|
||||
{
|
||||
|
||||
public CleaningLevelRepository(AppDbContext context) : base(context)
|
||||
{
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<CleaningLevel>> ListAllAsync()
|
||||
{
|
||||
return await _context.CleaningLevelCodes.ToListAsync();
|
||||
}
|
||||
|
||||
public async Task AddAsync(CleaningLevel cleaningLevelCodes)
|
||||
{
|
||||
await _context.CleaningLevelCodes.AddAsync(cleaningLevelCodes);
|
||||
}
|
||||
|
||||
public async Task<CleaningLevel> FindByIdAsync(int id)
|
||||
{
|
||||
return await _context.CleaningLevelCodes.Where(c => c.Code == id).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
public void Update(CleaningLevel category)
|
||||
{
|
||||
_context.CleaningLevelCodes.Update(category);
|
||||
}
|
||||
|
||||
public void Remove(CleaningLevel category)
|
||||
{
|
||||
_context.CleaningLevelCodes.Remove(category);
|
||||
}
|
||||
}
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
using LCU.API.Internal.RepoApi.Repos.Models.Settings;
|
||||
using LCU.API.Internal.RepoApi.Repos.Persistence;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Repositories.Settings
|
||||
{
|
||||
public class CollateralTypeRepository : BaseRepository, ICollateralTypeRepository
|
||||
{
|
||||
|
||||
public CollateralTypeRepository(AppDbContext context) : base(context)
|
||||
{
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<CollateralType>> ListAllAsync()
|
||||
{
|
||||
return await _context.CollateralTypes.ToListAsync();
|
||||
}
|
||||
|
||||
public async Task AddAsync(CollateralType collateralTypes)
|
||||
{
|
||||
await _context.CollateralTypes.AddAsync(collateralTypes);
|
||||
}
|
||||
|
||||
public async Task<CollateralType> FindByIdAsync(int id)
|
||||
{
|
||||
return await _context.CollateralTypes.Where(c => c.ID == id).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
public void Update(CollateralType category)
|
||||
{
|
||||
_context.CollateralTypes.Update(category);
|
||||
}
|
||||
|
||||
public void Remove(CollateralType category)
|
||||
{
|
||||
_context.CollateralTypes.Remove(category);
|
||||
}
|
||||
}
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
using LCU.API.Internal.RepoApi.Repos.Models.Settings;
|
||||
using LCU.API.Internal.RepoApi.Repos.Persistence;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Repositories.Settings
|
||||
{
|
||||
public class CollateralTypeToVehicleTypeRepository : BaseRepository, ICollateralTypeToVehicleTypeRepository
|
||||
{
|
||||
|
||||
public CollateralTypeToVehicleTypeRepository(AppDbContext context) : base(context)
|
||||
{
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<CollateralTypeToVehicleType>> ListAllAsync()
|
||||
{
|
||||
return await _context.CollateralTypesToVehicleTypes.ToListAsync();
|
||||
}
|
||||
|
||||
public async Task AddAsync(CollateralTypeToVehicleType collateralTypesToVehicleTypes)
|
||||
{
|
||||
await _context.CollateralTypesToVehicleTypes.AddAsync(collateralTypesToVehicleTypes);
|
||||
}
|
||||
|
||||
public async Task<CollateralTypeToVehicleType> FindByIdAsync(int id)
|
||||
{
|
||||
return await _context.CollateralTypesToVehicleTypes.Where(c => c.ID == id).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
public void Update(CollateralTypeToVehicleType category)
|
||||
{
|
||||
_context.CollateralTypesToVehicleTypes.Update(category);
|
||||
}
|
||||
|
||||
public void Remove(CollateralTypeToVehicleType category)
|
||||
{
|
||||
_context.CollateralTypesToVehicleTypes.Remove(category);
|
||||
}
|
||||
}
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
using LCU.API.Internal.RepoApi.Repos.Models.Settings;
|
||||
using LCU.API.Internal.RepoApi.Repos.Persistence;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Repositories.Settings
|
||||
{
|
||||
public class HoldStatusRepository : BaseRepository, IHoldStatusRepository
|
||||
{
|
||||
|
||||
public HoldStatusRepository(AppDbContext context) : base(context)
|
||||
{
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<HoldStatus>> ListAllAsync()
|
||||
{
|
||||
return await _context.HoldStatusCodes.ToListAsync();
|
||||
}
|
||||
|
||||
public async Task AddAsync(HoldStatus holdStatusCodes)
|
||||
{
|
||||
await _context.HoldStatusCodes.AddAsync(holdStatusCodes);
|
||||
}
|
||||
|
||||
public async Task<HoldStatus> FindByIdAsync(int id)
|
||||
{
|
||||
return await _context.HoldStatusCodes.Where(c => c.Code == id).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
public void Update(HoldStatus category)
|
||||
{
|
||||
_context.HoldStatusCodes.Update(category);
|
||||
}
|
||||
|
||||
public void Remove(HoldStatus category)
|
||||
{
|
||||
_context.HoldStatusCodes.Remove(category);
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using LCU.API.Internal.RepoApi.Repos.Models.Settings;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Repositories.Settings
|
||||
{
|
||||
public interface IAccountTypeRepository
|
||||
{
|
||||
Task<IEnumerable<AccountType>> ListAllAsync();
|
||||
Task AddAsync(AccountType code);
|
||||
Task<AccountType> FindByIdAsync(int id);
|
||||
void Update(AccountType code);
|
||||
void Remove(AccountType code);
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using LCU.API.Internal.RepoApi.Repos.Models.Settings;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Repositories.Settings
|
||||
{
|
||||
public interface IAllowedStatusChangeRepository
|
||||
{
|
||||
Task<IEnumerable<AllowedStatusChange>> ListAllAsync();
|
||||
Task AddAsync(AllowedStatusChange change);
|
||||
Task<AllowedStatusChange> FindByIdAsync(int id);
|
||||
void Update(AllowedStatusChange change);
|
||||
void Remove(AllowedStatusChange change);
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
using LCU.API.Internal.RepoApi.Repos.Models.Settings;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Repositories.Settings
|
||||
{
|
||||
public interface IBodyStyleRepository
|
||||
{
|
||||
Task<IEnumerable<BodyStyle>> ListAllAsync();
|
||||
Task AddAsync(BodyStyle code);
|
||||
Task<BodyStyle> FindByIdAsync(string id);
|
||||
void Update(BodyStyle code);
|
||||
void Remove(BodyStyle code);
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using LCU.API.Internal.RepoApi.Repos.Models.Settings;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Repositories.Settings
|
||||
{
|
||||
public interface ICleaningLevelRepository
|
||||
{
|
||||
Task<IEnumerable<CleaningLevel>> ListAllAsync();
|
||||
Task AddAsync(CleaningLevel code);
|
||||
Task<CleaningLevel> FindByIdAsync(int id);
|
||||
void Update(CleaningLevel code);
|
||||
void Remove(CleaningLevel code);
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using LCU.API.Internal.RepoApi.Repos.Models.Settings;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Repositories.Settings
|
||||
{
|
||||
public interface ICollateralTypeRepository
|
||||
{
|
||||
Task<IEnumerable<CollateralType>> ListAllAsync();
|
||||
Task AddAsync(CollateralType type);
|
||||
Task<CollateralType> FindByIdAsync(int id);
|
||||
void Update(CollateralType type);
|
||||
void Remove(CollateralType type);
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using LCU.API.Internal.RepoApi.Repos.Models.Settings;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Repositories.Settings
|
||||
{
|
||||
public interface ICollateralTypeToVehicleTypeRepository
|
||||
{
|
||||
Task<IEnumerable<CollateralTypeToVehicleType>> ListAllAsync();
|
||||
Task AddAsync(CollateralTypeToVehicleType type);
|
||||
Task<CollateralTypeToVehicleType> FindByIdAsync(int id);
|
||||
void Update(CollateralTypeToVehicleType type);
|
||||
void Remove(CollateralTypeToVehicleType type);
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using LCU.API.Internal.RepoApi.Repos.Models.Settings;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Repositories.Settings
|
||||
{
|
||||
public interface IHoldStatusRepository
|
||||
{
|
||||
Task<IEnumerable<HoldStatus>> ListAllAsync();
|
||||
Task AddAsync(HoldStatus code);
|
||||
Task<HoldStatus> FindByIdAsync(int id);
|
||||
void Update(HoldStatus code);
|
||||
void Remove(HoldStatus code);
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using LCU.API.Internal.RepoApi.Repos.Models.Settings;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Repositories.Settings
|
||||
{
|
||||
public interface ILoanCategoryRepository
|
||||
{
|
||||
Task<IEnumerable<LoanCategory>> ListAllAsync();
|
||||
Task AddAsync(LoanCategory category);
|
||||
Task<LoanCategory> FindByIdAsync(int id);
|
||||
void Update(LoanCategory category);
|
||||
void Remove(LoanCategory category);
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
using LCU.API.Internal.RepoApi.Repos.Models.Settings;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Repositories.Settings
|
||||
{
|
||||
public interface ILocationTypeRepository
|
||||
{
|
||||
Task<IEnumerable<LocationType>> ListAllAsync();
|
||||
Task AddAsync(LocationType code);
|
||||
Task<LocationType> FindByIdAsync(int id);
|
||||
void Update(LocationType code);
|
||||
void Remove(LocationType code);
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
|
||||
|
||||
using LCU.API.Internal.RepoApi.Repos.Models.Settings;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Repositories.Settings
|
||||
{
|
||||
public interface IVehicleTypeRepository
|
||||
{
|
||||
Task<IEnumerable<VehicleType>> ListAllAsync();
|
||||
Task AddAsync(VehicleType code);
|
||||
Task<VehicleType> FindByIdAsync(string id);
|
||||
void Update(VehicleType code);
|
||||
void Remove(VehicleType code);
|
||||
}
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
using LCU.API.Internal.RepoApi.Repos.Models.Settings;
|
||||
using LCU.API.Internal.RepoApi.Repos.Persistence;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Repositories.Settings
|
||||
{
|
||||
public class LoanCategoryRepository : BaseRepository, ILoanCategoryRepository
|
||||
{
|
||||
|
||||
public LoanCategoryRepository(AppDbContext context) : base(context)
|
||||
{
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<LoanCategory>> ListAllAsync()
|
||||
{
|
||||
return await _context.LoanCategories.ToListAsync();
|
||||
}
|
||||
|
||||
public async Task AddAsync(LoanCategory loanCategories)
|
||||
{
|
||||
await _context.LoanCategories.AddAsync(loanCategories);
|
||||
}
|
||||
|
||||
public async Task<LoanCategory> FindByIdAsync(int id)
|
||||
{
|
||||
return await _context.LoanCategories.Where(c => c.ID == id).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
public void Update(LoanCategory category)
|
||||
{
|
||||
_context.LoanCategories.Update(category);
|
||||
}
|
||||
|
||||
public void Remove(LoanCategory category)
|
||||
{
|
||||
_context.LoanCategories.Remove(category);
|
||||
}
|
||||
}
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
using LCU.API.Internal.RepoApi.Repos.Models.Settings;
|
||||
using LCU.API.Internal.RepoApi.Repos.Persistence;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Repositories.Settings
|
||||
{
|
||||
public class LocationTypeRepository : BaseRepository, ILocationTypeRepository
|
||||
{
|
||||
|
||||
public LocationTypeRepository(AppDbContext context) : base(context)
|
||||
{
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<LocationType>> ListAllAsync()
|
||||
{
|
||||
return await _context.LocationTypeCodes.ToListAsync();
|
||||
}
|
||||
|
||||
public async Task AddAsync(LocationType locationTypeCodes)
|
||||
{
|
||||
await _context.LocationTypeCodes.AddAsync(locationTypeCodes);
|
||||
}
|
||||
|
||||
public async Task<LocationType> FindByIdAsync(int id)
|
||||
{
|
||||
return await _context.LocationTypeCodes.Where(c => c.Code == id).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
public void Update(LocationType category)
|
||||
{
|
||||
_context.LocationTypeCodes.Update(category);
|
||||
}
|
||||
|
||||
public void Remove(LocationType category)
|
||||
{
|
||||
_context.LocationTypeCodes.Remove(category);
|
||||
}
|
||||
}
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
using LCU.API.Internal.RepoApi.Repos.Models.Settings;
|
||||
using LCU.API.Internal.RepoApi.Repos.Persistence;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Repositories.Settings
|
||||
{
|
||||
public class VehicleTypeRepository : BaseRepository, IVehicleTypeRepository
|
||||
{
|
||||
public VehicleTypeRepository(AppDbContext context) : base(context)
|
||||
{
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<VehicleType>> ListAllAsync()
|
||||
{
|
||||
return await _context.VehicleTypeCodes.ToListAsync();
|
||||
}
|
||||
|
||||
public async Task AddAsync(VehicleType vehicleTypeCodes)
|
||||
{
|
||||
await _context.VehicleTypeCodes.AddAsync(vehicleTypeCodes);
|
||||
}
|
||||
|
||||
public async Task<VehicleType> FindByIdAsync(string id)
|
||||
{
|
||||
return await _context.VehicleTypeCodes.Where(c => c.Code.Equals(id)).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
public void Update(VehicleType category)
|
||||
{
|
||||
_context.VehicleTypeCodes.Update(category);
|
||||
}
|
||||
|
||||
public void Remove(VehicleType category)
|
||||
{
|
||||
_context.VehicleTypeCodes.Remove(category);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user