-
Notifications
You must be signed in to change notification settings - Fork 806
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use primary constructor, use ArgumentNullException.ThrowIfNull
- Loading branch information
1 parent
a0ad83c
commit 72ee725
Showing
22 changed files
with
95 additions
and
201 deletions.
There are no files selected for viewing
10 changes: 3 additions & 7 deletions
10
...e/src/Serene.Web/Modules/Administration/Language/RequestHandlers/LanguageDeleteHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
using MyRow = Serene.Administration.LanguageRow; | ||
using MyRow = Serene.Administration.LanguageRow; | ||
using MyRequest = Serenity.Services.DeleteRequest; | ||
using MyResponse = Serenity.Services.DeleteResponse; | ||
|
||
|
||
namespace Serene.Administration; | ||
|
||
public interface ILanguageDeleteHandler : IDeleteHandler<MyRow, MyRequest, MyResponse> { } | ||
|
||
public class LanguageDeleteHandler : DeleteRequestHandler<MyRow, MyRequest, MyResponse>, ILanguageDeleteHandler | ||
public class LanguageDeleteHandler(IRequestContext context) | ||
: DeleteRequestHandler<MyRow, MyRequest, MyResponse>(context), ILanguageDeleteHandler | ||
{ | ||
public LanguageDeleteHandler(IRequestContext context) | ||
: base(context) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 4 additions & 7 deletions
11
...src/Serene.Web/Modules/Administration/Language/RequestHandlers/LanguageRetrieveHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
using MyRow = Serene.Administration.LanguageRow; | ||
using MyRow = Serene.Administration.LanguageRow; | ||
using MyRequest = Serenity.Services.RetrieveRequest; | ||
using MyResponse = Serenity.Services.RetrieveResponse<Serene.Administration.LanguageRow>; | ||
|
||
|
||
namespace Serene.Administration; | ||
|
||
public interface ILanguageRetrieveHandler : IRetrieveHandler<MyRow, MyRequest, MyResponse> { } | ||
public class LanguageRetrieveHandler : RetrieveRequestHandler<MyRow, MyRequest, MyResponse>, ILanguageRetrieveHandler | ||
|
||
public class LanguageRetrieveHandler(IRequestContext context) | ||
: RetrieveRequestHandler<MyRow, MyRequest, MyResponse>(context), ILanguageRetrieveHandler | ||
{ | ||
public LanguageRetrieveHandler(IRequestContext context) | ||
: base(context) | ||
{ | ||
} | ||
} |
11 changes: 4 additions & 7 deletions
11
serene/src/Serene.Web/Modules/Administration/Language/RequestHandlers/LanguageSaveHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
using MyRow = Serene.Administration.LanguageRow; | ||
using MyRow = Serene.Administration.LanguageRow; | ||
using MyRequest = Serenity.Services.SaveRequest<Serene.Administration.LanguageRow>; | ||
using MyResponse = Serenity.Services.SaveResponse; | ||
|
||
|
||
namespace Serene.Administration; | ||
|
||
public interface ILanguageSaveHandler : ISaveHandler<MyRow, MyRequest, MyResponse> { } | ||
public class LanguageSaveHandler : SaveRequestHandler<MyRow, MyRequest, MyResponse>, ILanguageSaveHandler | ||
|
||
public class LanguageSaveHandler(IRequestContext context) | ||
: SaveRequestHandler<MyRow, MyRequest, MyResponse>(context), ILanguageSaveHandler | ||
{ | ||
public LanguageSaveHandler(IRequestContext context) | ||
: base(context) | ||
{ | ||
} | ||
} |
11 changes: 4 additions & 7 deletions
11
serene/src/Serene.Web/Modules/Administration/Role/RequestHandlers/RoleDeleteHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
using MyRow = Serene.Administration.RoleRow; | ||
using MyRow = Serene.Administration.RoleRow; | ||
using MyRequest = Serenity.Services.DeleteRequest; | ||
using MyResponse = Serenity.Services.DeleteResponse; | ||
|
||
|
||
namespace Serene.Administration; | ||
|
||
public interface IRoleDeleteHandler : IDeleteHandler<MyRow, MyRequest, MyResponse> { } | ||
public class RoleDeleteHandler : DeleteRequestHandler<MyRow, MyRequest, MyResponse>, IRoleDeleteHandler | ||
|
||
public class RoleDeleteHandler(IRequestContext context) | ||
: DeleteRequestHandler<MyRow, MyRequest, MyResponse>(context), IRoleDeleteHandler | ||
{ | ||
public RoleDeleteHandler(IRequestContext context) | ||
: base(context) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 3 additions & 6 deletions
9
serene/src/Serene.Web/Modules/Administration/Role/RequestHandlers/RoleRetrieveHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
using MyRow = Serene.Administration.RoleRow; | ||
using MyRow = Serene.Administration.RoleRow; | ||
using MyRequest = Serenity.Services.RetrieveRequest; | ||
using MyResponse = Serenity.Services.RetrieveResponse<Serene.Administration.RoleRow>; | ||
|
||
|
||
namespace Serene.Administration; | ||
|
||
public interface IRoleRetrieveHandler : IRetrieveHandler<MyRow, MyRequest, MyResponse> { } | ||
public class RoleRetrieveHandler : RetrieveRequestHandler<MyRow, MyRequest, MyResponse>, IRoleRetrieveHandler | ||
public class RoleRetrieveHandler(IRequestContext context) | ||
: RetrieveRequestHandler<MyRow, MyRequest, MyResponse>(context), IRoleRetrieveHandler | ||
{ | ||
public RoleRetrieveHandler(IRequestContext context) | ||
: base(context) | ||
{ | ||
} | ||
} |
11 changes: 4 additions & 7 deletions
11
serene/src/Serene.Web/Modules/Administration/Role/RequestHandlers/RoleSaveHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 6 additions & 10 deletions
16
serene/src/Serene.Web/Modules/Administration/User/RequestHandlers/UserDeleteHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 3 additions & 6 deletions
9
serene/src/Serene.Web/Modules/Administration/User/RequestHandlers/UserListHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
using MyRow = Serene.Administration.UserRow; | ||
using MyRow = Serene.Administration.UserRow; | ||
using MyRequest = Serene.Administration.UserListRequest; | ||
using MyResponse = Serenity.Services.ListResponse<Serene.Administration.UserRow>; | ||
|
||
namespace Serene.Administration; | ||
|
||
public interface IUserListHandler : IListHandler<MyRow, MyRequest, MyResponse> { } | ||
|
||
public class UserListHandler : ListRequestHandler<MyRow, MyRequest, MyResponse>, IUserListHandler | ||
public class UserListHandler(IRequestContext context) | ||
: ListRequestHandler<MyRow, MyRequest, MyResponse>(context), IUserListHandler | ||
{ | ||
public UserListHandler(IRequestContext context) | ||
: base(context) | ||
{ | ||
} | ||
} |
11 changes: 4 additions & 7 deletions
11
serene/src/Serene.Web/Modules/Administration/User/RequestHandlers/UserRetrieveHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
using MyRow = Serene.Administration.UserRow; | ||
using MyRow = Serene.Administration.UserRow; | ||
using MyRequest = Serenity.Services.RetrieveRequest; | ||
using MyResponse = Serenity.Services.RetrieveResponse<Serene.Administration.UserRow>; | ||
|
||
|
||
namespace Serene.Administration; | ||
|
||
public interface IUserRetrieveHandler : IRetrieveHandler<MyRow, MyRequest, MyResponse> { } | ||
public class UserRetrieveHandler : RetrieveRequestHandler<MyRow, MyRequest, MyResponse>, IUserRetrieveHandler | ||
|
||
public class UserRetrieveHandler(IRequestContext context) | ||
: RetrieveRequestHandler<MyRow, MyRequest, MyResponse>(context), IUserRetrieveHandler | ||
{ | ||
public UserRetrieveHandler(IRequestContext context) | ||
: base(context) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.