refactoring the command
All checks were successful
Dotnet build and test / build (pull_request) Successful in 8m54s

This commit is contained in:
Paul Schneider 2026-09-04 14:53:00 +01:00
commit 6b4e52e7ce
Signed by: notazof
GPG key ID: 1DD5D838E5343B06
15 changed files with 459 additions and 188 deletions

View file

@ -13,15 +13,15 @@ namespace Yavsc.Models.Messaging
{
Topic = "Estimation";
Estimation = estimate;
perfer = estimate.Owner;
performer = estimate.Owner;
ProviderInfo = new ProviderClientInfo {
Rate = perfer.Rate,
UserName = perfer.Performer.UserName,
Avatar = perfer.Performer.Avatar,
UserId = perfer.PerformerId
Rate = performer.Rate,
UserName = performer.Performer.UserName,
Avatar = performer.Performer.Avatar,
UserId = performer.PerformerId
};
Sender = perfer.Performer.UserName;
Sender = performer.Performer.UserName;
_localizer = SR;
}
@ -31,7 +31,7 @@ namespace Yavsc.Models.Messaging
ProviderClientInfo ProviderInfo { get; set; }
Estimate Estimation { get; set; }
private readonly PerformerProfile perfer;
private readonly PerformerProfile performer;
public string Topic
{
@ -47,7 +47,7 @@ namespace Yavsc.Models.Messaging
public string CreateBody()
{
return string.Format(_localizer["EstimationMessageToClient"], perfer.Performer.UserName, this.Estimation.Bill.Addition());
return string.Format(_localizer["EstimationMessageToClient"], performer.Performer.UserName, this.Estimation.Bill.Addition());
}
}
}