CS0029无法将类型'Look_UpData.TableType'隐式转换为'LookUpData.Core.Domain.TableType'

时间:2017-12-20 11:46:49

标签: asp.net-mvc

public class TableTypeRepository : ITableTypeRepository
{
    private TrenStarEAMEntities db = new TrenStarEAMEntities();
    Core.Domain.TableType ITableTypeRepository.GetTableType(short id)
    {
        using (TrenStarEAMEntities dbContext = new TrenStarEAMEntities.Data.TrenStarEAMEntities())
        {
            var HttpStatusCoderesult = dbContext.GetTableType(null);
            Core.Domain.TableType tableType = db.TableTypes.Find(id);
            if (tableType == null)
            {
                return HttpNotFound();
            }
            return View(tableType);
        }
    }

    private Core.Domain.TableType View(Core.Domain.TableType tableType)
    {
        throw new NotImplementedException();
    }

    private Core.Domain.TableType HttpNotFound()
    {
        throw new NotImplementedException();
    }

    Core.Domain.TableType ITableTypeRepository.GetTableType(short id)
    {
        throw new NotImplementedException();
    }
}

这是错误是GetTableType(短ID)的人可以帮助吗?

0 个答案:

没有答案