Add Directory Management Feature with Permission Handling
This commit is contained in:
parent
69d27c7471
commit
9ceba92447
@ -1,4 +1,5 @@
|
|||||||
using Marco.Pms.Model.Utilities;
|
using Marco.Pms.Model.Employees;
|
||||||
|
using Marco.Pms.Model.Utilities;
|
||||||
|
|
||||||
namespace Marco.Pms.Model.Directory
|
namespace Marco.Pms.Model.Directory
|
||||||
{
|
{
|
||||||
@ -6,6 +7,9 @@ namespace Marco.Pms.Model.Directory
|
|||||||
{
|
{
|
||||||
public Guid Id { get; set; }
|
public Guid Id { get; set; }
|
||||||
public string Name { get; set; } = string.Empty;
|
public string Name { get; set; } = string.Empty;
|
||||||
|
public Guid CreatedByID { get; set; }
|
||||||
|
public Employee? CreatedBy { get; set; }
|
||||||
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||||
public string Description { get; set; } = string.Empty;
|
public string Description { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2354,6 +2354,8 @@ namespace Marco.Pms.Services.Helpers
|
|||||||
{
|
{
|
||||||
Name = bucketDto.Name,
|
Name = bucketDto.Name,
|
||||||
Description = bucketDto.Description,
|
Description = bucketDto.Description,
|
||||||
|
CreatedAt = DateTime.UtcNow,
|
||||||
|
CreatedByID = LoggedInEmployee.Id,
|
||||||
TenantId = tenantId
|
TenantId = tenantId
|
||||||
};
|
};
|
||||||
_context.Buckets.Add(bucket);
|
_context.Buckets.Add(bucket);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user