Beispiel #1
0
        public IActionResult Employees()
        {
            ViewBag.Title = "Cущьности";
            var employees = employeesData.GetAll();

            return(View(employees));
        }
Beispiel #2
0
 public IActionResult Index() => View(_EmployeesData.GetAll().Select(e => new EmployeeViewModel
 {
     Id         = e.Id,
     Name       = e.FirstName,
     SecondName = e.SurName,
     Patronymic = e.Patronymic,
     Age        = e.Age,
     Position   = e.Position,
 }));
 public IActionResult GetAll()
 {
     return(Ok(_EmployeesData.GetAll()));
 }
 public IActionResult Index()
 {
     return(View("GetEmployes", _EmployeesData.GetAll()));
 }
Beispiel #5
0
 public IActionResult Index()
 {
     //return Content("test");
     return(View(_employeesData.GetAll()));
 }
 public IEnumerable <EmployeeView> GetAll()
 {
     return(_employeesData.GetAll());
 }
Beispiel #7
0
        public IActionResult Index()
        {
            var employees = _employeesData.GetAll();

            return(View(employees));
        }
 //[Route("Employees")]
 public IActionResult Index() => View(_EmployeesData.GetAll().Select(e => e.ToView()));
Beispiel #9
0
 //[Route("")]
 public IActionResult Index() => View(_EmployeesData.GetAll().Select(EmployeeMapping.ToView));
 public IActionResult Index()
 {
     //return Content("Hello World!!");
     return(View(_EmployeesData.GetAll()));
 }
Beispiel #11
0
 public IEnumerable <EmployeeView> GetAll() => _EmployeesData.GetAll();
 public IActionResult Index()
 {
     return(View(_employeesService.GetAll()));
     //return Content("Hello from controller");
 }
Beispiel #13
0
 //[Route("Get")]
 //[TestActionFilter]
 public IActionResult Index() => View(_EmployeesData.GetAll());
Beispiel #14
0
 /// <summary>
 /// Вывод списка сотрудников
 /// </summary>
 /// <returns></returns>
 public IActionResult Index()
 {
     return(View(_employeesData.GetAll()));  //передаем модель
 }
Beispiel #15
0
 public IEnumerable <Employee> GetAll()
 {
     return(_EmployeesData.GetAll());
 }
Beispiel #16
0
 public IActionResult Index()
 {
     return(View(Employees.GetAll()));
 }
Beispiel #17
0
 public IActionResult Index()
 {
     //return Content("12345");
     return(View(_employees.GetAll()));
 }
Beispiel #18
0
 public IActionResult Employees()
 {
     return(View(employeesData.GetAll()));
 }
Beispiel #19
0
 /// <summary>
 /// Вывод списка
 /// </summary>
 /// <returns></returns>
 public IActionResult Index()
 {
     return(View(_employeesData.GetAll()));
 }
Beispiel #20
0
 //   [Route("emp/")]
 public IActionResult Index()
 {
     // return View(TestData.Employees);
     return(View(employeesData.GetAll()));
 }