public ResponseDto <Vaccine> GetVaccineById(int id) { return(new ResponseDto <Vaccine> { Data = _vaccinesRepository.GetById(id) }); }
private BaseCall MapCallDtoToCallVaccine(CallDto callVaccine) { return(new CallVaccine { Address = callVaccine.Address, Animal = _animalsRepository.GetById(callVaccine.AnimalId), Date = callVaccine.Date, Id = callVaccine.Id, Vaccine = _vaccinesRepository.GetById(callVaccine.WorkId) }); }