commit change all folder

This commit is contained in:
Kham
2021-11-24 09:28:37 +11:00
parent 1131159112
commit 4e3cc0750c
58 changed files with 151 additions and 92 deletions
+47
View File
@@ -0,0 +1,47 @@
using CarParkValidationAPI.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CarParkValidationAPI.Entities
{
public class AdminUserDto
{
#region public Member
public int Id { get; set; }
public string StafflinkNo { get; set; }
public string Name { get; set; }
public string AddedBy { get; set; }
public DateTime AddedOn { get; set; }
public bool Active { get; set; }
public AdminRole RoleType { get; set; }
public int ValidationPointId { get; set; }
#endregion
}
public class AdminUserViewDto
{
#region public Member
public int Id { get; set; }
public string StafflinkNo { get; set; }
public string Name { get; set; }
public string AddedBy { get; set; }
public DateTime AddedOn { get; set; }
public bool Active { get; set; }
public string RoleType { get; set; }
public string ValidationPoint { get; set; }
#endregion
}
}
+21
View File
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CarParkValidationAPI.Entities
{
public class ApiException
{
public ApiException(int statusCode, string message = null, string details = null)
{
StatusCode = statusCode;
Message = message;
Details = details;
}
public int StatusCode { get; set; }
public string Message { get; set; }
public string Details { get; set; }
}
}
+20
View File
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CarParkValidationAPI.Entities
{
public class ConcessionTypeDto
{
#region public Member
public int Id { get; set; }
public string Description { get; set; }
public string Display { get; set; }
public bool Active { get; set; }
#endregion
}
}
+41
View File
@@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CarParkValidationAPI.Entities
{
public class ConcessionValidationExtDto: ConcessionValidationDto
{
public string ConcessionType { get; set; }
public string ValidationPoint { get; set; }
}
public partial class ConcessionValidationDto
{
#region public Member
public int Id { get; set; }
public DateTime ValidateDate { get; set; }
public string ConcessionCard { get; set; }
public string ConcessionHolder { get; set; }
public bool ConcessionExpiry { get; set; }
public int ConcessionTypeId { get; set; }
public string StafflinkNo { get; set; }
public int ValidationPointId { get; set; }
public bool Active { get; set; }
public string StaffFirstName { get; set; }
public string StaffLastName { get; set; }
public string StaffEmail { get; set; }
#endregion
}
}
+13
View File
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CarParkValidationAPI.Entities
{
public class FileContent
{
public byte[] Content { get; set; }
public string FileName { get; set; }
}
}
+20
View File
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CarParkValidationAPI.Entities
{
public class LookupCodeDto
{
public int Id
{
get; set;
}
public string Description
{
get; set;
}
}
}
+8
View File
@@ -0,0 +1,8 @@
namespace CarParkValidationAPI.Entities
{
public enum Role
{
Admin,
User
}
}
+24
View File
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace CarParkValidationAPI.Entities
{
public class ValidationPointDto
{
#region public Member
public int Id { get; set; }
[Required]
public string Description { get; set; }
public string Display { get; set; }
public bool Active { get; set; }
#endregion
}
}