Add Directory Management Feature with Permission Handling

This commit is contained in:
ashutosh.nehete 2025-05-24 15:45:43 +05:30
parent 69d27c7471
commit 9ceba92447
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,5 @@
using Marco.Pms.Model.Utilities;
using Marco.Pms.Model.Employees;
using Marco.Pms.Model.Utilities;
namespace Marco.Pms.Model.Directory
{
@ -6,6 +7,9 @@ namespace Marco.Pms.Model.Directory
{
public Guid Id { get; set; }
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;
}
}

View File

@ -2354,6 +2354,8 @@ namespace Marco.Pms.Services.Helpers
{
Name = bucketDto.Name,
Description = bucketDto.Description,
CreatedAt = DateTime.UtcNow,
CreatedByID = LoggedInEmployee.Id,
TenantId = tenantId
};
_context.Buckets.Add(bucket);