SES-164 Change bad references
This commit is contained in:
parent
ee05b0d381
commit
3a8090dab7
@ -50,7 +50,7 @@ namespace SessionCompanion.Services.Services
|
||||
{
|
||||
await Repository.Update(armorToUse);
|
||||
await Repository.Save();
|
||||
return new SuccessResponse("Character armor updated") { SuccessCode = 200 };
|
||||
return new SuccessResponse("Character armor updated") { StatusCode = 200 };
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -65,7 +65,7 @@ namespace SessionCompanion.Services.Services
|
||||
await Repository.Update(armorInUse);
|
||||
await Repository.Update(armorToUse);
|
||||
await Repository.Save();
|
||||
return new SuccessResponse("Character armor updated") { SuccessCode = 204 };
|
||||
return new SuccessResponse("Character armor updated") { StatusCode = 204 };
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
@ -147,7 +147,7 @@ namespace SessionCompanion.Controllers
|
||||
try
|
||||
{
|
||||
await _service.CreateCharactersFromTemplate(characterId, userId, newName);
|
||||
return new SuccessResponse("Character created") { SuccessCode = 200 };
|
||||
return new SuccessResponse("Character created") { StatusCode = 200 };
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
@ -92,7 +92,7 @@ namespace SessionCompanion.Controllers
|
||||
{
|
||||
await _characterArmorService.Create(characterArmorViewModel);
|
||||
await _characterArmorService.SaveAsync();
|
||||
return new SuccessResponse("Armor added to character") { SuccessCode = 200 };
|
||||
return new SuccessResponse("Armor added to character") { StatusCode = 200 };
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -114,7 +114,7 @@ namespace SessionCompanion.Controllers
|
||||
{
|
||||
await _characterWeaponService.Create(characterWeaponViewModel);
|
||||
await _characterWeaponService.SaveAsync();
|
||||
return new SuccessResponse("Weapon added to character") { SuccessCode = 200 };
|
||||
return new SuccessResponse("Weapon added to character") { StatusCode = 200 };
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user