using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace GODATA.Controllers
{
///
/// contains all map related methods
///
[GODATA.MvcApplication.SessionExpire]
public class GeoController : Controller
{
#region Global Variables
///
/// getting user's utc minutes from session
///
private static string _timeOffSetMinutes = null;
//= System.Web.HttpContext.Current.Session["UtcMinute"].ToString();
///
/// getting login user's id
///
private static string _LoginUserId = null;
//= System.Web.HttpContext.Current.Session["UserId"].ToString();
///
/// getting time zone id
///
private static string _TimeZoneId = ConfigurationManager.AppSettings["TimeZoneId"].ToString();
#endregion
///
/// to load main page of of positioning tool
///
/// main page of of positioning tool
public ActionResult PositioningTool()
{
// globally storing userid from session
_LoginUserId = Session["UserId"].ToString();
// globally storing UtcMinute from session
_timeOffSetMinutes = Session["UtcMinute"].ToString();
// storing security token to viewbag
ViewBag.SecurityToken = ConfigurationManager.AppSettings["RESTfulSecurityToken"].ToString();
// storing UtcMinutes to viewbag
ViewBag.UtcMinutes = _timeOffSetMinutes;
// storing Userid to viewbag
ViewBag.Userid = _LoginUserId;
return View();
}
}
}