public DetailModel GetById(int id) { Detail detail = repository.GetById(id); var detailModel = new DetailModel() { Id = detail.Id, CarId = detail.CarId, Name = detail.Name, Price = detail.Price }; return(detailModel); }
public DetailModel GetById(int id) { Detail detail = repository.GetById(id); var detailModel = new DetailModel() { Id = detail.Id, CarId = detail.CarId, Name = detail.Name, Price = detail.Price }; return(detailModel); }