public ComputerUsingHistory GetById(int id)
        {
            var computerUsingHistory = _computerUsingHistoryRepository.GetSingleByCondition(x => x.ComputerUsingHistoryId == id, new [] { "Computer", "AppUser" });

            computerUsingHistory.Computer = _computerRepository.GetSingleByCondition(x => x.ComputerId == computerUsingHistory.ComputerId, new [] { "DeparmentType" });
            return(computerUsingHistory);
        }
Exemplo n.º 2
0
 public Model.Models.Computer GetSingleDeepById(int id)
 {
     return(_computerRepository.GetSingleByCondition(x => x.ComputerId == id,
                                                     new[] { "ComputerType", "DeparmentType", "ProducerType" }));
 }