Exemplo n.º 1
0
        public static bool AddTechnicalData(TechnicalDataVM technicalDataVM)
        {
            var listte = new TechnicalData();

            listte.Id              = technicalDataVM.Id;
            listte.Numbersofdoors  = technicalDataVM.Numbersofdoors;
            listte.Numbersofplaces = technicalDataVM.Numbersofplaces;
            listte.EugineType      = technicalDataVM.EugineType;
            listte.EugineLocation  = technicalDataVM.EugineLocation;
            listte.EugineVolume    = technicalDataVM.EugineVolume;
            listte.BodyType        = technicalDataVM.BodyType;

            return(Repo.repo.AddTechnicalData(listte));
        }
Exemplo n.º 2
0
        public static TechnicalDataVM GetTechnicalDataById(Guid id)
        {
            var             data = Repo.repo.GetTechnicalDataById(id);
            TechnicalDataVM teh  = new TechnicalDataVM()
            {
                Id              = data.Id,
                BodyType        = data.BodyType,
                EugineLocation  = data.EugineLocation,
                EugineType      = data.EugineType,
                EugineVolume    = data.EugineVolume,
                Numbersofdoors  = data.Numbersofdoors,
                Numbersofplaces = data.Numbersofplaces
            }
            ;

            return(teh);
        }