Beispiel #1
0
        // GET: ChooseUs
        public async Task <IActionResult> Index()
        {
            var user = await _userManager.GetUserAsync(User);

            if (user == null)
            {
                return(RedirectToAction(nameof(AccountController.Login), "Account"));
            }

            else
            {
                try
                {
                    ViewBag.sms = TempData["sms"].ToString();
                }
                catch
                {
                }

                var model = new ChooseUsViewModel();
                model.Notificaciones = _empleadosData.GetNotifications();
                model.Motivos        = _empleadosData.GetAllTheReasons();
                return(View(model));
            }
        }
Beispiel #2
0
        public IActionResult Dashboard()

        {
            var model = new IndexViewModel();

            model.Notificaciones = _EmpleadosData.GetNotifications();
            model.Empleados      = _EmpleadosData.GetEmpleados();
            model.Galeria        = _EmpleadosData.GetAllPictures();
            model.Motivos        = _EmpleadosData.GetAllTheReasons();
            model.Servicios      = _EmpleadosData.GetAllServices();
            return(View(model));
        }
Beispiel #3
0
        public IActionResult Index()
        {
            var model = new EmpleadosViewModel();


            model.Empleados = _EmpleadosData.GetAll();

            model.Razones = _EmpleadosData.GetAllTheReasons();

            model.Servicios = _EmpleadosData.GetAllServices();

            model.Fotos = _EmpleadosData.GetAllPictures();

            return(View(model));
        }