FIxed issues invalid validation

This commit is contained in:
ashutosh.nehete 2025-06-10 16:52:01 +05:30
parent b61caa9ee7
commit 3f18371330

View File

@ -190,7 +190,7 @@ namespace Marco.Pms.Services.Helpers
{
var tenantId = _userHelper.GetTenantId();
Employee LoggedInEmployee = await _userHelper.GetCurrentEmployeeAsync();
if (contactTagDto != null && contactTagDto.Id != id)
if (contactTagDto != null && contactTagDto.Id == id)
{
ContactTagMaster? contactTag = await _context.ContactTagMasters.AsNoTracking().FirstOrDefaultAsync(t => t.TenantId == tenantId && t.Id == contactTagDto.Id);
if (contactTag != null)