Compare commits

..

No commits in common. "fafbc55732e01cf40e8c5a47ab10b372710cb81d" and "b481a3999a35769cd32926d5f9ccb82d8c46728b" have entirely different histories.

4 changed files with 6 additions and 6 deletions

View File

@ -40,6 +40,6 @@ namespace gehGassi.Dto.Walks
/// <summary>
/// Zahlungsart für den Walk
/// </summary>
public WalkPaymentTypeDto? PaymentType { get; set; }
public WalkPaymentTypeDto PaymentType { get; set; }
}
}

View File

@ -105,6 +105,6 @@ namespace gehGassi.Dto.Walks
/// <summary>
/// Zahlungsart für den Walk
/// </summary>
public WalkPaymentTypeDto? PaymentType { get; set; }
public WalkPaymentTypeDto PaymentType { get; set; }
}
}

View File

@ -776,7 +776,7 @@ namespace gehGassi.Web.Controllers
/// </summary>
/// <param name="model">Model</param>
/// <returns>Json</returns>
[Authorize(Policy = Policies.CustomerOnly)]
[Authorize(Policy = Policies.PowerUserOnly)]
[HasPermission(Permission.AdvertisementsManage, Permission.AdvertisementsEdit)]
[CustomerAuthorize("CustomerId")]
[ValidateAntiForgeryToken]

View File

@ -1039,7 +1039,7 @@ namespace gehGassi.Web.Controllers.Api
walk.CompletedInfo = string.Empty;
walk.Defactation = false;
walk.PaymentStatus = PaymentStatus.Pending;
walk.PaymentType = model.PaymentType != null ? (WalkPaymentType)model.PaymentType : WalkPaymentType.MangoPay;
walk.PaymentType = (WalkPaymentType)model.PaymentType;
walk.UpdatedAt = DateTimeOffset.UtcNow;
walk.Created = DateTimeOffset.UtcNow;
@ -3630,7 +3630,7 @@ namespace gehGassi.Web.Controllers.Api
walk.CompletedInfo = string.Empty;
walk.Defactation = false;
walk.PaymentStatus = PaymentStatus.Pending;
walk.PaymentType = model.PaymentType != null ? (WalkPaymentType)model.PaymentType : WalkPaymentType.MangoPay;
walk.PaymentType = (WalkPaymentType)model.PaymentType;
walk.UpdatedAt = DateTimeOffset.UtcNow;
walk.Created = DateTimeOffset.UtcNow;
@ -3810,7 +3810,7 @@ namespace gehGassi.Web.Controllers.Api
walk.CompletedInfo = string.Empty;
walk.Defactation = false;
walk.PaymentStatus = PaymentStatus.None;
walk.PaymentType = model.PaymentType != null ? (WalkPaymentType)model.PaymentType : WalkPaymentType.MangoPay;
walk.PaymentType = (WalkPaymentType)model.PaymentType;
walk.UpdatedAt = DateTimeOffset.UtcNow;
walk.Created = DateTimeOffset.UtcNow;