using AutoMapper;
using Qusion.Cms.Users.Core;
using Qusion.Cms.Users.Domain;
using Qusion.WebApp.Areas.cms.Filters;
using Qusion.WebApp.Areas.cms.Models;
using Qusion.Framework.Configuration;
using System.Web;
using System.Collections.Generic;
using Qusion.Cms.Media.Images;
using Qusion.Cms.Media.Core;
using Qusion.Cms.Modules.Articles.Core;
using Qusion.WebApp.Areas.cms.Models.Articles;
using Qusion.Cms.Modules.Articles;
using System;
using Qusion.WebApp.Models.Article;
using System.Web.Mvc;
using Qusion.WebApp.Areas.cms.Models.Users;


namespace Qusion.WebApp.Areas.cms.Controllers
{
  
    public class MobileController : Controller
    {
        
        private readonly UserService _userService;


        public MobileController(UserService userService)
        {            
            _userService = userService;
        }


        public ActionResult Index()
        {
            var user = _userService.Get(User.Identity.Name);
            var model = Mapper.Map<User, UserModel>(user);
            return View(new AppModel
               {
                   User = model
              });
        }
       
    }
}