C#.NET Business Logic Layer Class example

  • Home
  • Blog
  • C#.NET Business Logic Layer Class example

//here is the example of business logica layer class public class UserBll{#region Private Memebersprivate DashBoardData.UserData _objUserData;private DashBoardCollection.UserCollection _objUserCol;#endregion#region Methodspublic UserBll(){}public UserBll(DashBoardCollection.UserCollection obj){_objUserCol = obj;}#endregion#region Methodspublic void Add(){_objUserData = new DashBoardData.UserData(this._objUserCol);_objUserData.Operation(DashBoardData.OpertaionType.Add);}public void Update(){_objUserData = new DashBoardData.UserData(this._objUserCol);_objUserData.Operation(DashBoardData.OpertaionType.Update);}public void Delete(){_objUserData = new DashBoardData.UserData(this._objUserCol);_objUserData.Operation(DashBoardData.OpertaionType.Delete);}public Boolean CheckUserLogin(){_objUserData = new DashBoardData.UserData(this._objUserCol);return _objUserData.CheckUserLogin();}#endregion

}