ICarRepository.cs 600 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. using GxPress.Entity.WorkFlow;
  5. using GxPress.Request.App.Flow;
  6. using Datory;
  7. using GxPress.Entity.WorkCar;
  8. namespace GxPress.Repository.Interface.WorkCar
  9. {
  10. public interface ICarRepository : IRepository
  11. {
  12. Task<int> InsertAsync(Car item);
  13. Task UpdateAsync(Car item);
  14. Task<Car> GetAsync(int carId);
  15. Task<IEnumerable<Car>> GetListAsync(int typeId);
  16. Task<bool> DeleteAsync(int carId);
  17. Task<int> GetAvailableCarId(int typeId, IEnumerable<int> orderedCarIds);
  18. }
  19. }