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(); } }
public async Task SaveCompanyBook([FromBody] CompanyBook companyBook) { await _companyService.SaveCompanyBook(companyBook); }
public async Task SaveCompanyBook(CompanyBook companyBookDTO) { await SaveCompanyBookMethod(companyBookDTO); }