예제 #1
0
 public async Task <IActionResult> Delete(int id)
 {
     if (id < 1)
     {
         throw new BadRequestException(_dataBaseService.UnitOfWorkExceptionMessage.DataException.ItemIdleastOne);
     }
     return(Ok(await _dataBaseService.DeleteAsync(id)));
 }