public async Task <IActionResult> UpdateAuthor([FromBody] UpdateAuthorParameter author)
        {
            var isUpdated = await _authorBusiness.UpdateAuthor(author);

            if (isUpdated)
            {
                return(Ok("Updated Successfully"));
            }
            return(NoContent());
        }
示例#2
0
        public async Task <IActionResult> Edit(UpdateAuthorParameter author)
        {
            await _authorBusiness.UpdateAuthor(author);

            return(RedirectToAction("Index"));
        }