say NO to try-catch in controllers
- added ExceptionsMiddleware.cs - added more Exception types - removed all exceptions logic in controllers
This commit is contained in:
parent
eb271793ad
commit
55e82425a9
8 changed files with 75 additions and 20 deletions
|
|
@ -4,6 +4,6 @@ namespace SurveyBackend.Core.Services;
|
|||
|
||||
public interface IAuthorizationService
|
||||
{
|
||||
public Task<string?> LogInUser(string email, string password);
|
||||
public Task<string> LogInUser(string email, string password);
|
||||
public Task RegisterUser(User user);
|
||||
}
|
||||
|
|
@ -4,6 +4,6 @@ namespace SurveyBackend.Core.Services;
|
|||
|
||||
public interface IUserService
|
||||
{
|
||||
public Task<User?> GetUserByEmail(string email);
|
||||
public Task<User> GetUserByEmail(string email);
|
||||
public Task CreateUserAsync(User user);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue