add lastmodified and lastmodifiedid to table also add code for modified and create
This commit is contained in:
@@ -18,6 +18,7 @@ namespace CarParkValidationAPI.Repository
|
||||
public class AdminUserFakeRepository : IAdminUser
|
||||
{
|
||||
private DataContext _context;
|
||||
private string _currentUser = "";
|
||||
List<AdminUserDto> _resultList = new List<AdminUserDto>();
|
||||
private readonly AppSettings _appSettings;
|
||||
|
||||
@@ -31,7 +32,11 @@ namespace CarParkValidationAPI.Repository
|
||||
_appSettings = appSettings.Value;
|
||||
}
|
||||
|
||||
private AdminUserDto FillAdminUserDto(AdminUser model)
|
||||
public void SetCurrentUser(string username)
|
||||
{
|
||||
_currentUser = username;
|
||||
}
|
||||
private AdminUserDto FillAdminUserDto(AdminUser model)
|
||||
{
|
||||
AdminUserDto dto = new AdminUserDto();
|
||||
dto.Id = model.UserID;
|
||||
@@ -46,7 +51,6 @@ namespace CarParkValidationAPI.Repository
|
||||
|
||||
private AdminUser FillAdminUser(AdminUserDto dto, AdminUser model)
|
||||
{
|
||||
|
||||
model.UserID = dto.Id;
|
||||
model.Name = dto.Name;
|
||||
model.RoleType = dto.RoleType;
|
||||
|
||||
Reference in New Issue
Block a user