Enhance code readability and maintainability by refactoring various components. Update formatting commands in CLAUDE.md for csharpier integration. Simplify method signatures in SegmentFiles, UploadLimits, and multiple endpoint classes for improved clarity. Adjust query handlers and command handlers to streamline parameter handling and enhance consistency across the application.
This commit is contained in:
+4
-1
@@ -8,7 +8,10 @@ namespace TeleWave.Application.Programming.Groups.UpdateGroup;
|
||||
public sealed class UpdateGroupCommandHandler(IAppDbContext dbContext)
|
||||
: ICommandHandler<UpdateGroupCommand, Result>
|
||||
{
|
||||
public async Task<Result> Handle(UpdateGroupCommand command, CancellationToken cancellationToken)
|
||||
public async Task<Result> Handle(
|
||||
UpdateGroupCommand command,
|
||||
CancellationToken cancellationToken
|
||||
)
|
||||
{
|
||||
var group = await dbContext.Groups.FirstOrDefaultAsync(
|
||||
g => g.Id == command.GroupId,
|
||||
|
||||
Reference in New Issue
Block a user