Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
Webinar_51
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
Alexey Goikolov
Webinar_51
Commits
ff9f7f3d
Commit
ff9f7f3d
authored
Mar 31, 2021
by
Alexey Goikolov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Удалил класс User из HomeController.cs
parent
38437533
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
33 deletions
+1
-33
HomeController.cs
Lesson49/Controllers/HomeController.cs
+1
-33
No files found.
Lesson49/Controllers/HomeController.cs
View file @
ff9f7f3d
...
...
@@ -21,15 +21,6 @@ namespace Lesson49.Controllers
return
Json
(
id
);
}
public
User
GetUser
(
int
id
)
//Home/GetString
{
User
u
=
new
User
(
"John"
,
20
,
1
);
User
u2
=
new
User
(
"John"
,
20
,
2
);
User
u3
=
new
User
(
"John"
,
20
,
3
);
User
u4
=
new
User
(
"John"
,
20
,
4
);
List
<
User
>
users
=
new
List
<
User
>()
{
u
,
u2
,
u3
,
u4
};
return
users
.
FirstOrDefault
(
u
=>
u
.
Id
==
id
);
}
public
IActionResult
DownloadFile
()
{
...
...
@@ -46,11 +37,7 @@ namespace Lesson49.Controllers
return
File
(
stream
,
fileType
,
fileName
);
}
public
User
CreateUser
(
User
user
)
{
return
user
;
}
[
NonAction
]
public
bool
GetBool
()
...
...
@@ -65,24 +52,5 @@ namespace Lesson49.Controllers
}
public
class
User
{
public
int
Id
{
get
;
set
;
}
public
string
Name
{
get
;
set
;
}
public
int
Age
{
get
;
set
;
}
public
User
(
string
name
,
int
age
,
int
id
)
{
Id
=
id
;
Name
=
name
;
Age
=
age
;
}
public
User
()
{
}
}
}
\ No newline at end of file
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