-3
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 ?

user3745020
  • 71
  • 1
  • 8

1 Answers1

0

Use AutoMapper to map properties from UI Classes to Business Classes. A good walk-through of this is here

Typist
  • 1,464
  • 9
  • 14