Example #1
0
        public async Task <bool> CarReserveAsync(Guid CarId, MoneyValue MoneyValue, DateTime RentalDate, DateTime DevolutionDate)
        {
            Reserve Reserve = new Reserve();

            Reserve.Id = Guid.NewGuid();

            var reserve = new Reserve();

            reserve.CarId          = CarId;
            reserve.ActionType     = CarType.Job;
            reserve.RentalDate     = RentalDate;
            reserve.DevolutionDate = DevolutionDate;
            reserve.Value          = MoneyValue;

            await _ReserveRepository.CreateAsync(Reserve);

            return(await _ReserveRepository.SaveChangesAsync() > 0);
        }
Example #2
0
 Task <ReturnResult> IReserveService.PutReserve(Guid id, Reserve reserve)
 {
     throw new NotImplementedException();
 }
Example #3
0
 public Task <ReturnResult> PutReserve(Guid id, Reserve reserve)
 {
     throw new NotImplementedException();
 }