private void ShowListAuthors()
        {
            listAuthor = AuthorController.GetAuthors();
            int stt = 0;

            foreach (Author author in listAuthor)
            {
                listviewAuthors.Items.Add(stt.ToString());
                listviewAuthors.Items[stt].SubItems.Add(author.Id());
                listviewAuthors.Items[stt].SubItems.Add(author.Name());
                stt++;
            }
        }
 public void LoadData()
 {
     LoadCombobox(AuthorController.GetAuthors(),
                  ref cbbAuthors,
                  CategoryController.GetCategories(),
                  ref cbbCategory);
 }
        // GET: api/Author
        public HttpResponseMessage Get()
        {
            var Books = AuthorBLL.GetAuthors();

            if (Books == null)
            {
                return(Request.CreateResponse(HttpStatusCode.NotFound));
            }

            return(Request.CreateResponse(HttpStatusCode.OK, Books));
        }
        public void LoadForm(string _id)
        {
            Clear();
            book = BookController.GetBookByID(_id);
            //if (!ComboboxIsLoaded)
            //{

            LoadCombobox(AuthorController.GetAuthors(), ref cbbAuthors, CategoryController.GetCategories(), ref cbbCategory);
            //ComboboxIsLoaded = true;
            //}
            LoadBookData();
        }