コード例 #1
0
        public async Task <IActionResult> DeleteBook(int id)
        {
            var resultProcess = await bookBLL.DeleteAsync(id);

            if (!resultProcess.IsApproved)
            {
                return(BadRequest(resultProcess.ShortMessage));
            }
            else
            {
                return(Ok(resultProcess.ObjectResult));
            }
        }