class MyProjectBusiness
{
// Interaction (read Write)) with DB
}
class MyProjectUI
{
// this class interacts with Business Logic
}
class MyProjectUIControls
{
// These are just User controls consumed by UI, No Interaction to Business layer
}
Generally I raise events from UIControls. UI Class handles those events and creates Business Classes (or populate values in Business Classes)
First, I wanted to ask is this the correct way of abstracting different layers in Software ?
Now My actual problem is - there is big class (having around 40 Properties) which has to pass data from UIControls to Business Logic, What is the best way to do this ?