public AttachmentFile(AttachmentFile file, int productId) { ProductId = productId; FileName = file.FileName; FilePath = file.FilePath; FileType = file.FileType; }
public static AttachmentFile UpdateAttachmentFileMapping(AttachmentFile request, AttachmentFile existing) { existing.FileName = request.FileName; existing.FilePath = request.FilePath; return(existing); }