Add Patch 8 in API
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 4m25s
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 4m25s
This commit is contained in:
parent
e80a917a2b
commit
e616318047
@ -19,7 +19,7 @@ namespace Models.Repositories
|
|||||||
|
|
||||||
public async Task<EAccountType?> GetByNameAsync(string name)
|
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;
|
return accountType != null ? MapEntity<PhSAccountType, EAccountType>(accountType) : null;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user