public async Task ChangeDuration(int borrowId, DateTime start, DateTime end) { Borrow borrowDomain = await GetBorrowAsync(borrowId); borrowDomain.EditDuration(new Term(start, end)); await this._borrowRepository.Save(borrowDomain); }
public async Task ChangeDuration(int borrowId, DateTime start, DateTime end) { Borrow borrowDomain = await GetBorrowAsync(borrowId); borrowDomain.EditDuration(new Term(start, end)); await this._borrowRepository.Save(borrowDomain); }