public async Task <IActionResult> UpdateAuthor([FromBody] UpdateAuthorParameter author) { var isUpdated = await _authorBusiness.UpdateAuthor(author); if (isUpdated) { return(Ok("Updated Successfully")); } return(NoContent()); }
public async Task <IActionResult> Edit(UpdateAuthorParameter author) { await _authorBusiness.UpdateAuthor(author); return(RedirectToAction("Index")); }