public ActionResult DailyAPPLanding(string SSID) { if (!string.IsNullOrEmpty(SSID)) { string parameters = System.Text.ASCIIEncoding.ASCII.GetString(System.Convert.FromBase64String(SSID)); DieticianModel obj = Newtonsoft.Json.JsonConvert.DeserializeObject <DieticianModel>(parameters); ViewBag.SubDomainName = obj.SubDomain_Name; ViewBag.CompanyCode = obj.Company_Code; ViewBag.RegionCode = obj.Region_Code; ViewBag.UserCode = obj.User_Code; ViewBag.UserTypeCode = obj.User_Type_Code; ViewBag.UserName = obj.User_Name; ViewBag.RegionName = obj.Region_Name; ViewBag.latitude = obj.latitude; ViewBag.longitude = obj.longitude; } else { ViewBag.CompanyCode = _objCurrentInfo.GetCompanyCode(); ViewBag.RegionCode = _objCurrentInfo.GetRegionCode(); ViewBag.UserCode = _objCurrentInfo.GetUserCode(); ViewBag.UserTypeCode = _objCurrentInfo.GetUserTypeCode(); ViewBag.UserName = _objCurrentInfo.GetUserName(); ViewBag.RegionName = _objCurrentInfo.GetRegionName(); ViewBag.latitude = null; ViewBag.longitude = null; } return(View()); }
public ActionResult NewLeaveEntry(string SSID) { if (!string.IsNullOrEmpty(SSID)) { string parameters = System.Text.ASCIIEncoding.ASCII.GetString(System.Convert.FromBase64String(SSID)); DieticianModel obj = Newtonsoft.Json.JsonConvert.DeserializeObject <DieticianModel>(parameters); ViewBag.CompanyCode = obj.Company_Code; ViewBag.RegionCode = obj.Region_Code; ViewBag.UserCode = obj.User_Code; ViewBag.UserTypeCode = obj.User_Type_Code; ViewBag.UserName = obj.User_Name; ViewBag.RegionName = obj.Region_Name; ViewBag.latitude = obj.latitude; ViewBag.longitude = obj.longitude; } else { DataControl.CurrentInfo objCurInfo = new DataControl.CurrentInfo(); ViewBag.Companycode = objCurInfo.GetCompanyCode(); ViewBag.Usercode = objCurInfo.GetUserCode(); ViewBag.RegionCode = objCurInfo.GetRegionCode(); ViewBag.UserTypecode = objCurInfo.GetUserTypeCode(); ViewBag.UserName = objCurInfo.GetUserName(); } return(View()); }