resloved rebase conflicts
This commit is contained in:
commit
4282966afd
@ -86,6 +86,7 @@ namespace Marco.Pms.DataAccess.Data
|
||||
public DbSet<MailLog> MailLogs { get; set; }
|
||||
|
||||
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
base.OnModelCreating(modelBuilder);
|
||||
|
@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
@ -697,7 +697,7 @@ namespace Marco.Pms.Services.Helpers
|
||||
|
||||
try
|
||||
{
|
||||
await _context.SaveChangesAsync();
|
||||
await _context.SaveChangesAsync();
|
||||
}
|
||||
catch (DbUpdateException dbEx)
|
||||
{
|
||||
@ -847,7 +847,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)
|
||||
{
|
||||
@ -1034,10 +1034,6 @@ namespace Marco.Pms.Services.Helpers
|
||||
return ApiResponse<object>.SuccessResponse(new { }, "Note deleted successfully", 200);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// -------------------------------- Bucket --------------------------------
|
||||
|
||||
public async Task<ApiResponse<object>> GetBucketList()
|
||||
|
Loading…
x
Reference in New Issue
Block a user