public IHttpActionResult Post(AuthorViewModel author)
 {
     var model = AutoMapper.Mapper.Map<AuthorViewModel, Author>(author);
     authorService.Insert(model);
     return CreatedAtRoute("DefaultApi", new { id = author.Id }, author);
 }
 public IHttpActionResult Put(AuthorViewModel author)
 {
     var model = AutoMapper.Mapper.Map<AuthorViewModel, Author>(author);
     authorService.Update(model);
     return StatusCode(HttpStatusCode.NoContent);
 }