public IHttpActionResult DeleteLibrarian(Guid id, ValueModel librarian)
 {
     var user = this.usersService.GetByUpn(librarian.Value);
     this.libraryService.GetById(id).Librarians.Add(user);
     this.libraryService.SaveChanges();
     return Ok();
 }
 public void GetAuthors(Guid id , ValueModel AuthorNameValue)
 {
     var a = this.authorsService.GetById(id);
     a.Name = AuthorNameValue.Value;
     this.authorsService.SaveChanges();
 }
 public void GetAuthors(ValueModel AuthorNameValue)
 {
     this.authorsService.RegisterAuthor(new Author() { Name = AuthorNameValue.Value });
     this.authorsService.SaveChanges();
 }