Sending Is Active in Object Of Contact notes
This commit is contained in:
parent
a64e9538e4
commit
5ad2a795b8
@ -234,7 +234,8 @@ namespace Marco.Pms.Model.Mapper
|
||||
Note = note.Note,
|
||||
ContactId = note.ContactId,
|
||||
CreatedAt = note.CreatedAt,
|
||||
CreatedBy = note.Createdby != null ? note.Createdby.ToBasicEmployeeVMFromEmployee() : null
|
||||
CreatedBy = note.Createdby != null ? note.Createdby.ToBasicEmployeeVMFromEmployee() : null,
|
||||
IsActive = note.IsActive
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -11,5 +11,6 @@ namespace Marco.Pms.Model.ViewModels.Directory
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
public BasicEmployeeVM? UpdatedBy { get; set; }
|
||||
public Guid ContactId { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -831,7 +831,7 @@ namespace Marco.Pms.Services.Helpers
|
||||
if (notes.Any())
|
||||
{
|
||||
List<Guid>? noteIds = notes.Select(n => n.Id).ToList();
|
||||
List<DirectoryUpdateLog>? noteUpdateLogs = await _context.DirectoryUpdateLogs.Include(l => l.Employee).Where(l => noteIds.Contains(l.Id)).OrderByDescending(l => l.UpdateAt).ToListAsync();
|
||||
List<DirectoryUpdateLog>? noteUpdateLogs = await _context.DirectoryUpdateLogs.Include(l => l.Employee).Where(l => noteIds.Contains(l.RefereanceId)).OrderByDescending(l => l.UpdateAt).ToListAsync();
|
||||
List<ContactNoteVM>? noteVMs = new List<ContactNoteVM>();
|
||||
foreach (var note in notes)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user