public ActionResult AddTest() { Logging.ActionLog(Request, "~/Views/Templates/DefaultTest/DefaultTest/AddTest ( ASP MVC WCF )"); string urlReferrer = string.Empty; if (Request.UrlReferrer != null) { urlReferrer = Request.UrlReferrer.AbsoluteUri; } // save result of call try { new DefaultTestServiceClient(). AddTestRun( "NorPort", "MVC", "ASPMenu", urlReferrer, DateTime.UtcNow, DateTime.UtcNow, 1, DefaultTestRunResultRef.OK, "new", Logging.UserId(User.Identity, ViewBag) ); } catch (Exception ex) { Logging.ErrorLog("DefaultTestController", "AddTest", ex); } ViewBag.UrlReferrer = urlReferrer; return(View( "~/Views/TemplatesLive/DefaultTest/DefaultTest/AddTest.cshtml" )); }
public ActionResult DefaultUserListIndex() { Logging.ActionLog(Request, "DefaultSearch DefaultUserListIndex ( ASP MVC WCF )"); return(View( "~/Views/DurianLive/DefaultSearch/DefaultUserListIndex.cshtml", new DefaultSearchService().DefaultUserList() )); }
public ActionResult DefaultErrorOverviewIndex() { Logging.ActionLog(Request, "DefaultSearch" + " " + "DefaultErrorOverviewIndex" + " ( ASP MVC WCF )"); return(View( "~/Views/DurianLive/DefaultSearch/DefaultErrorOverviewIndex.cshtml", new DefaultSearchService().DefaultErrorOverview() )); }
public ActionResult LoginImpersonate( string userCode ) { Guid userId = new DefaultUserActivityServiceClient().Login(userCode); Logging.ActionLog(Request, "DefaultSearch DefaultUserListIndex ( ASP MVC WCF )"); return(View( "~/Views/DurianLive/DefaultSearch/DefaultUserListIndex.cshtml", new DefaultSearchService().DefaultUserList() )); }
// GET: ResolveNetnameFromIpV4 public ActionResult ResolveNetnameFromIpV4(string ipAddress) { ViewBag.IpAddress = ipAddress; ViewBag.NetName = new SolutionNorSolutionPort.BusinessLogicLayer.DefaultUserActivityServiceClient().ResolveNetnameFromIpV4(ipAddress); if (String.IsNullOrEmpty(ViewBag.NetName)) { ViewBag.NetName = "*Not found*"; } Logging.ActionLog(Request, "DefaultSearch" + " " + " " + "ResolveNetnameFromIpV4" + " ( ASP MVC WCF )"); return(View()); }
public ActionResult Index() { var obj = new CrudeDefaultSystemReferenceTableServiceClient(); List <CrudeDefaultSystemReferenceTableContract> refTables = obj.FetchAll(); foreach (CrudeDefaultSystemReferenceTableContract refTable in refTables) { refTable.DefaultSystemReferenceTableName = Nice(refTable.DefaultSystemReferenceTableName); } Logging.ActionLog(Request, "SystemReferenceTable" + " " + "Index" + " ( ASP MVC WCF )"); return(View( "~/Views/Div/" + "SystemReferenceTable" + "/" + "Index" + ".cshtml", refTables )); }
public static string Resolve(HttpRequestBase request, string domain, string action) { Logging.ActionLog(request, domain + " " + action + " ( ASP MVC WCF )"); return("~/Views/" + domain + "/" + action + ".cshtml"); }