using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LHDN.CRM.Web.Controllers;
using LHDN.CRM.Web.Filters;
using LHDN.CRM.BC.Common;

namespace LHDN.CRM.Web.Areas.UserRequest.Controllers
{
    public class ProfileController : BaseController
    {
        // GET: UserRequest/Profile
        [CRMAuthorize(Constant.Authentication.Administration.ApproveUserProfileCreationUpdate, Constant.Authentication.Administration.ReviewUserProfileCreationUpdate, Constant.Authentication.Administration.RequestUserCreation, Constant.Authentication.Administration.RequestUpdateUserProfile)]
        public ActionResult Index()
        {
            return View();
        }

        [CRMAuthorize(Constant.Authentication.Administration.ApproveUserProfileCreationUpdate, Constant.Authentication.Administration.ReviewUserProfileCreationUpdate, Constant.Authentication.Administration.RequestUserCreation, Constant.Authentication.Administration.RequestUpdateUserProfile)]
        public ActionResult Detail(string id)
        {
            ViewBag.UserProfileID = id;

            AddAntiforgeryToken();
            return View("Index");
        }

        [CRMAuthorize(Constant.Authentication.Administration.ApproveUserProfileCreationUpdate, Constant.Authentication.Administration.ReviewUserProfileCreationUpdate, Constant.Authentication.Administration.RequestUserCreation, Constant.Authentication.Administration.RequestUpdateUserProfile)]
        public ActionResult New()
        {
            AddAntiforgeryToken();
            return View("Index");
        }
    }
}