public async Task <IActionResult> Update([FromBody] Writer writer)
        {
            if (writer == null)
            {
                return(NotFound());
            }
            var updatedResult = await _writerService.Update(writer);

            return(Ok(updatedResult));
        }
        public IActionResult Update(Writer writer)
        {
            var result = _writerService.Update(writer);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
 public ActionResult UpdateWriter(Writer writer)
 {
     writerManager.Update(writer);
     return(RedirectToAction("Index"));
 }