Exemplo n.º 1
0
        public WorkItemView Query(string serialNumber)
        {
            var item   = _repository.GetAll().FirstOrDefault(x => x.SerialNumber == serialNumber);
            var result = Mapper.Map <WorkItem, WorkItemView>(item);

            result.UpdateTown(_eNodebRepository, _btsRepository, _townRepository);
            return(result);
        }