Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ValuationResponseService : IValuationResponseService
- {
- private IRepository<ValuationResponse> valuationResponseRepository;
- //public ValuationResponseService(IRepository<ValuationResponse> valuationResponseRepository)
- //{
- // this.valuationResponseRepository = valuationResponseRepository;
- //}
- public async Task Create(ValuationResponse model)
- {
- this.valuationResponseRepository = new GenericRepository<ValuationResponse>(new AppraisalDbDbContext());
- this.valuationResponseRepository.Add(model);
- await this.valuationResponseRepository.SaveChangesAsync();
- this.valuationResponseRepository.Dispose();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement