Ejemplo n.º 1
0
        public IActionResult Index()
        {
            var Users          = _roomAppService.GetAll();
            var RoomViewModels = _mapper.Map <IEnumerable <RoomViewModel> >(Users);

            return(StatusCode(200, RoomViewModels));
        }
        public IActionResult Index()
        {
            var roomViewModel = mapper.Map <IEnumerable <RoomViewModel> >(roomApp.GetAll());

            return(View(roomViewModel));
        }
 public IActionResult Create()
 {
     ViewBag.User_id = userApp.GetAll().OrderBy(p => p.Name);
     ViewBag.Room_id = roomApp.GetAll().OrderBy(p => p.Name);
     return(View());
 }
Ejemplo n.º 4
0
 public ActionResult Index()
 {
     return(View(_roomAppService.GetAll()));
 }