resloved rebase conflicts

This commit is contained in:
ashutosh.nehete 2025-05-31 18:58:20 +05:30
commit 4282966afd
5 changed files with 7 additions and 9 deletions

View File

@ -86,6 +86,7 @@ namespace Marco.Pms.DataAccess.Data
public DbSet<MailLog> MailLogs { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);

View File

@ -1,5 +1,4 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable

View File

@ -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
};
}
}

View File

@ -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; }
}
}

View File

@ -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()