public async Task <IActionResult> Post([FromBody] AuthorDTO value) { if (value == null) { throw new BadRequestException(_dataBaseService.UnitOfWorkExceptionMessage.DataException.NoData); } if (!ModelState.IsValid) { throw new BadRequestException(_dataBaseService.UnitOfWorkExceptionMessage.DataException.DataIsNotValid); } return(Ok(await _dataBaseService.AddAsync(value))); }