これは私のコードです
HotelMGT _DB = new HotelMGT();
public virtual ActionResult Index()
{
ViewBag.TypeID = new string[] { "Assets", "Liabilities", "Income","Expenses" };
var model = from r in _DB.AccountHead
orderby r.AccountHeadID ascending
//where r.AccountTypeID == AccountTypeID || (AccountTypeID==null)
select r; //_DB.AccountType;
return View(model );
}
次のエラーが発生しました。
Ambiguity between 'MyHotel.Models.HotelMGT.AccountHead' and
'MyHotel.Models.HotelMGT.AccountHead'
C#またはMVCに関連するエラーを特定し、これを修正するにはどうすればよいですか?すべての提案を歓迎します。
よろしく。