public JsonResult Edit(Author author)
        {
            // result return true  if update successfully, else return false
            var result = AuthorDao.CreateOrEdit(author) > 0;

            return(Json(result));
        }
        public JsonResult Create(Author author)
        {
            author.IsActive = true;
            var result = AuthorDao.CreateOrEdit(author) > 0;

            return(Json(result));
        }