Commit ff9f7f3d authored by Alexey Goikolov's avatar Alexey Goikolov

Удалил класс User из HomeController.cs

parent 38437533
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment