Document_Manager #129

Merged
ashutosh.nehete merged 83 commits from Document_Manager into main 2025-09-11 04:12:01 +00:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 08232ee34f - Show all commits

View File

@ -6,8 +6,7 @@
public string Name { get; set; } = string.Empty; public string Name { get; set; } = string.Empty;
public string? RegexExpression { get; set; } public string? RegexExpression { get; set; }
public string AllowedContentType { get; set; } = string.Empty; public string AllowedContentType { get; set; } = string.Empty;
public int MaxFilesAllowed { get; set; } public double MaxSizeAllowedInMB { get; set; }
public double MaxSizeAllowedInKB { get; set; }
public bool IsValidationRequired { get; set; } public bool IsValidationRequired { get; set; }
public bool IsMandatory { get; set; } public bool IsMandatory { get; set; }
public bool IsSystem { get; set; } public bool IsSystem { get; set; }

View File

@ -5,6 +5,7 @@ using Marco.Pms.Model.Dtos.DocumentManager;
using Marco.Pms.Model.Entitlements; using Marco.Pms.Model.Entitlements;
using Marco.Pms.Model.Filters; using Marco.Pms.Model.Filters;
using Marco.Pms.Model.Utilities; using Marco.Pms.Model.Utilities;
using Marco.Pms.Model.ViewModels.Activities;
using Marco.Pms.Model.ViewModels.DocumentManager; using Marco.Pms.Model.ViewModels.DocumentManager;
using Marco.Pms.Services.Service; using Marco.Pms.Services.Service;
using MarcoBMS.Services.Helpers; using MarcoBMS.Services.Helpers;
@ -485,6 +486,7 @@ namespace Marco.Pms.Services.Controllers
logger.LogInfo("Document uploaded successfully. AttachmentId: {AttachmentId}, DocumentId: {DocumentId}", attachment.Id, document.Id); logger.LogInfo("Document uploaded successfully. AttachmentId: {AttachmentId}, DocumentId: {DocumentId}", attachment.Id, document.Id);
var response = _mapper.Map<DocumentListVM>(attachment); var response = _mapper.Map<DocumentListVM>(attachment);
response.UploadedBy = _mapper.Map<BasicEmployeeVM>(loggedInEmployee);
return Ok(ApiResponse<object>.SuccessResponse(response, "Document added successfully", 200)); return Ok(ApiResponse<object>.SuccessResponse(response, "Document added successfully", 200));
} }
catch (Exception ex) catch (Exception ex)