Feature_Directory #90
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user