Exemple #1
0
        private async Task SaveCompanyBookMethod(CompanyBook companyBookDTO)
        {
            var book = await _unitOfWork.BookRepository.GetByIdAsync(companyBookDTO.Id);

            if (book != null)
            {
                book.Status = companyBookDTO.Status;
                _unitOfWork.BookRepository.Update(book);
                await _unitOfWork.SaveAsync();
            }
        }
Exemple #2
0
 public async Task SaveCompanyBook([FromBody] CompanyBook companyBook)
 {
     await _companyService.SaveCompanyBook(companyBook);
 }
Exemple #3
0
 public async Task SaveCompanyBook(CompanyBook companyBookDTO)
 {
     await SaveCompanyBookMethod(companyBookDTO);
 }