Skip to content

Commit

Permalink
Updating the samples.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sina-Soltani committed Dec 27, 2019
1 parent 28097b4 commit fcbc132
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions samples/Parbad.Sample.Mvc/Controllers/PaymentController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ public PaymentController(IOnlinePayment onlinePayment)
}

[HttpGet]
public ActionResult PayRequest()
public ActionResult Pay()
{
return View();
}

[HttpPost]
public async Task<ActionResult> PayRequest(RequestViewModel payViewModel)
public async Task<ActionResult> Pay(RequestViewModel payViewModel)
{
if (!ModelState.IsValid)
{
Expand Down
6 changes: 5 additions & 1 deletion samples/Parbad.Sample.Mvc/Parbad.Sample.Mvc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@
<Content Include="Views\Shared\Error.cshtml" />
<Content Include="Views\Shared\_Layout.cshtml" />
<Content Include="Views\Payment\Verify.cshtml" />
<Content Include="Views\Payment\PayRequest.cshtml" />
<Content Include="Views\Payment\Pay.cshtml" />
<Content Include="Views\Payment\Refund.cshtml" />
<Content Include="Views\Payment\RefundResult.cshtml" />
<Content Include="Views\Payment\PayRequestError.cshtml" />
Expand All @@ -329,6 +329,10 @@
<Content Include="Scripts\jquery-3.3.1.min.map" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Parbad.Gateway\ZarinPal\src\Parbad.Gateway.ZarinPal.csproj">
<Project>{0f2cd6c7-3d9a-4d9d-9132-afbcbda3f47c}</Project>
<Name>Parbad.Gateway.ZarinPal</Name>
</ProjectReference>
<ProjectReference Include="..\..\src\Parbad.Mvc\Parbad.Mvc.csproj">
<Project>{19fbd363-c6f1-4dfc-a311-da8485b6f8a4}</Project>
<Name>Parbad.Mvc</Name>
Expand Down
4 changes: 4 additions & 0 deletions samples/Parbad.Sample.WebForm/Parbad.Sample.WebForm.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,10 @@
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Parbad.Gateway\ZarinPal\src\Parbad.Gateway.ZarinPal.csproj">
<Project>{0f2cd6c7-3d9a-4d9d-9132-afbcbda3f47c}</Project>
<Name>Parbad.Gateway.ZarinPal</Name>
</ProjectReference>
<ProjectReference Include="..\..\src\Parbad.Owin\Parbad.Owin.csproj">
<Project>{a1815d72-31a8-45bf-95b5-2a1f1008e0f8}</Project>
<Name>Parbad.Owin</Name>
Expand Down

0 comments on commit fcbc132

Please sign in to comment.