Add Patch 8 in API
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 4m25s

This commit is contained in:
Leandro Hernan Rojas 2025-04-03 20:05:32 -03:00
parent e80a917a2b
commit e616318047

View File

@ -19,7 +19,7 @@ namespace Models.Repositories
public async Task<EAccountType?> GetByNameAsync(string name)
{
var accountType = await _context.PhSAccountTypes.FirstOrDefaultAsync(a => a.Name == name);
var accountType = await _context.PhSAccountTypes.FirstOrDefaultAsync(a => a.Name.Contains(name));
return accountType != null ? MapEntity<PhSAccountType, EAccountType>(accountType) : null;
}
#endregion