I am Getting a error
Cannot implicitly convert type 'DAL.OtherIncome' to 'AccountSystem.OtherIncome'
Can You Please help me to fix this
IncomeDAL.cs
public OtherIncome getByID(int id)
{
OtherIncome OtherInc = ent.OtherIncomes.Where(o => o.ID==id).Single();
return OtherInc;
}
int OtherID = int.Parse(ViewState["ID"].ToString());
IncomeDAL Inc = new IncomeDAL();
OtherIncome othIn = Inc.getByID(OtherID);