Split BusinessLogic from WebApp

This commit is contained in:
2016-12-13 22:09:38 +01:00
parent 4e0304d9a4
commit 577e8b4127
35 changed files with 125 additions and 2410 deletions

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;
using VAR.Focus.Web.Code.JSON;
using VAR.Focus.BusinessLogic.JSON;
namespace VAR.Focus.Web.Controls
{

View File

@@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.Threading;
using System.Web;
using VAR.Focus.BusinessLogic;
using VAR.Focus.BusinessLogic.Entities;
using VAR.Focus.Web.Code;
using VAR.Focus.Web.Code.BusinessLogic;
using VAR.Focus.Web.Code.Entities;
namespace VAR.Focus.Web.Controls
{
@@ -136,7 +136,7 @@ namespace VAR.Focus.Web.Controls
private void ProcessEventSender(HttpContext context)
{
Session session = Sessions.Current.Session_GetCurrent(context);
Session session = WebSessions.Current.Session_GetCurrent(context);
string currentUserName = session.UserName;
string strIDBoard = context.GetRequestParm("IDBoard");
int idBoard = Convert.ToInt32(string.IsNullOrEmpty(strIDBoard) ? "0" : strIDBoard);

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;
using VAR.Focus.Web.Code.JSON;
using VAR.Focus.BusinessLogic.JSON;
namespace VAR.Focus.Web.Controls
{

View File

@@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.Threading;
using System.Web;
using VAR.Focus.BusinessLogic;
using VAR.Focus.BusinessLogic.Entities;
using VAR.Focus.Web.Code;
using VAR.Focus.Web.Code.BusinessLogic;
using VAR.Focus.Web.Code.Entities;
namespace VAR.Focus.Web.Controls
{
@@ -95,7 +95,7 @@ namespace VAR.Focus.Web.Controls
string idMessageBoard = context.GetRequestParm("IDMessageBoard");
if (string.IsNullOrEmpty(idMessageBoard)) { idMessageBoard = "root"; }
string userName = Convert.ToString(context.GetRequestParm("UserName"));
Session session = Sessions.Current.Session_GetCurrent(context);
Session session = WebSessions.Current.Session_GetCurrent(context);
if (session.UserName.ToLower() != userName.ToLower())
{
context.ResponseObject(new OperationStatus { IsOK = false, Message = "User mismatch" });