Add Patch 7 in API
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 2m53s
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 2m53s
This commit is contained in:
parent
4e15bcfcc1
commit
e80a917a2b
@ -27,9 +27,17 @@ namespace Core.Services
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<EAccountType?> GetByNameAsync(string name)
|
public async Task<EAccountType?> GetByNameAsync(string name)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
try
|
||||||
|
{
|
||||||
|
return await _repository.GetByNameAsync(name);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
var methodName = MethodBase.GetCurrentMethod()?.Name ?? "UnknownMethod";
|
||||||
|
throw new Exception($"{methodName} Message: {ex.Message}", ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user