I have a Service that is a Data-layer , this Service is being called by another service that is a Business layer, The first later is working fine.
Now i want to access the function in the Data-layer, i can access the Function.Now my Challenge is here.
The function in a Data-layer Returns
[code]
public List<LoginModel> GetLogins()
{
} [/code]
so that means the "LoginModel" is the Class that is my Model and and now in my Business logic layer , i am accessing the Data-layer service like this
[/code]
public List<DalService.LoginModel> GetLogins()
{
DalService.DALClient obj = new DalService.DALClient();
List<DalService.LoginModel> m_logins = new List<DalService.LoginModel>();
m_logins = obj.GetLogins();
return m_logins;
} [code]
now the problem here is this line
[code] m_logins = obj.GetLogins();[/code]
[code] Error 1 Cannot implicitly convert type 'BLLBusiness.DalService.LoginModel[]' to 'System.Collections.Generic.List<BLLBusiness.DalService.LoginModel>' C:\WorkDevelopment\Silver\BLLBusiness\BLLBusiness\cBLLService.cs 28 24 BLLBusiness [/code]
Thanks
Thank you for posting at Dotnetfunda
[Administrator]