STEP 1: Create the class file like PropellerStudioBL.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VCSB.INTRANET.DAL;
using System.Web.UI.WebControls;
namespace VCSB.INTRANET.BLL
{
public class PropellerStudioBL:IVCSBIntranetBL
{
//empty constructor
int _listId;
string _title = string.Empty, _description = string.Empty; FileUpload _filePath;
string _propellertitle;
public string Propellertitle
{
get { return _propellertitle; }
set { _propellertitle = value; }
}
public FileUpload FilePath
{
get { return _filePath; }
set { _filePath = value; }
}
public string Description
{
get { return _description; }
set { _description = value; }
}
public PropellerStudioBL()
{
}
public PropellerStudioBL(int listId)
{
this.ID = listId;
}
public PropellerStudioBL(string propellertitle, string description, FileUpload filePath)
{
this.Propellertitle = propellertitle;
this.Description = description;
this.FilePath = filePath;
}
public PropellerStudioBL(int propellerID,string propellertitle, string description, FileUpload filePath)
{
this.ID = propellerID;
this.Propellertitle = propellertitle;
this.Description = description;
this.FilePath = filePath;
}
public string Title
{
get
{
return _title;
}
set
{
value = _title;
}
}
public bool insert()
{
return PropellerStudioDL.insert(this);
}
public bool update()
{
return PropellerStudioDL.update(this);
}
public bool delete()
{
return PropellerStudioDL.delete(this);
}
public System.Data.DataTable GetAllListItem()
{
return PropellerStudioDL.GetAllListItem(this);
}
public System.Data.DataTable GetPropellerData()
{
return PropellerStudioDL.GetPropellerData(this);
}
public System.Data.DataTable GetSingleRowListItem()
{
return PropellerStudioDL.GetSingleRowListItem(this);
}
public int ID
{
get { return _listId; }
set { _listId = value; }
}
public void GetSingleRowListItem(int id)
{
throw new NotImplementedException();
}
}
}
No comments:
Post a Comment