I am new to .net programming.
I am developing a windows application(C#), in which i am using Layered Architecture (3 layers [View layer, Business-logic layer and Data-access layer]). But am stuck between concept of View layer and BusinessLogic layer. E.g.
Let in my Form there are many DataGridVew control in same winform, and i have to do some manipulation on them that's why i created a common method for similar manipulation say GetRecordCount(..)
private int GetRecordCount(DatagridView dgv)
{
//calculate record row count and return that.
}
My question is :: Where should i put GetRecordCount(..)
method , in ViewLayer or BusinessLogic layer ?
If we put GetRecordCount(..)
in BusinessLogic layer then is it good to pass win controls in BusinessLogic layer as argument for manipulation b'coz winform controls are the part of ViewLayer?