示例#1
0
        public async Task <IActionResult> DeleteAuthor(int id)
        {
            var resultProcess = await authorBLL.DeleteAsync(id);

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