public IActionResult Delete(BookImage bookImage) { var result = _bookImageService.Delete(bookImage); if (result.Success) { return(Ok(bookImage)); } return(BadRequest(result)); }
public IActionResult Delete([FromQuery(Name = ("Id"))] int Id) { var bookImage = _bookImageService.GetById(Id).Data; var result = _bookImageService.Delete(bookImage); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }