Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
payments
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Юнусов Ибрагим
payments
Commits
59e9c7b5
Commit
59e9c7b5
authored
Jul 06, 2022
by
Юнусов Ибрагим
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Добавил роуты до контроллер? чтобы получить доступы через постман
parent
5befd221
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
SupplierController.cs
Payments/Payment.WebApi/Controllers/SupplierController.cs
+3
-0
UserController.cs
Payments/Payment.WebApi/Controllers/UserController.cs
+3
-0
No files found.
Payments/Payment.WebApi/Controllers/SupplierController.cs
View file @
59e9c7b5
...
...
@@ -5,6 +5,7 @@ using Payment.WebApi.Repositories.Interfaces;
namespace
Payment.WebApi.Controllers
;
[ApiController]
[Route("Suppliers/[action]
")]
public
class
SupplierController
:
Controller
{
private
readonly
ISupplierRepository
_supplierRepository
;
...
...
@@ -14,6 +15,8 @@ public class SupplierController : Controller
_supplierRepository
=
supplierRepository
;
}
[
HttpGet
]
[
ActionName
(
"GetAll"
)]
public
ActionResult
<
List
<
Supplier
>>
GetAll
()
{
try
...
...
Payments/Payment.WebApi/Controllers/UserController.cs
View file @
59e9c7b5
...
...
@@ -5,6 +5,7 @@ using Payment.WebApi.Repositories.Interfaces;
namespace
Payment.WebApi.Controllers
;
[ApiController]
[Route("Users/[action]
")]
public
class
UserController
:
Controller
{
private
readonly
IUserRepository
_userRepository
;
...
...
@@ -14,6 +15,8 @@ public class UserController : Controller
_userRepository
=
userRepository
;
}
[
HttpGet
]
[
ActionName
(
"GetUser"
)]
public
ActionResult
<
User
>
GetUser
(
int
id
)
{
try
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment