public ActionResult AddBook(BookStoreAdmin.ViewModels.BookRequest bookRequest) { BookStoreAdmin.ViewModels.Response <BookStoreAdmin.ViewModels.Book> response = new ViewModels.Response <BookStoreAdmin.ViewModels.Book>(); response.data = BookStoreAdmin.BAL.Book.AddBook(bookRequest); response.success = true; response.errorMessage = null; return(Json(response, JsonRequestBehavior.AllowGet)); }
public ActionResult EditAuthor(BookStoreAdmin.ViewModels.Author author) { BookStoreAdmin.ViewModels.Response <BookStoreAdmin.ViewModels.Author> response = new ViewModels.Response <BookStoreAdmin.ViewModels.Author>(); author = BookStoreAdmin.BAL.Author.EditAuthor(author); response.success = true; response.data = author; response.errorMessage = null; return(Json(response, JsonRequestBehavior.AllowGet)); }
public ActionResult EditCategory(BookStoreAdmin.ViewModels.Category category) { BookStoreAdmin.ViewModels.Response <BookStoreAdmin.ViewModels.Category> response = new ViewModels.Response <BookStoreAdmin.ViewModels.Category>(); category = BookStoreAdmin.BAL.Category.EditCategory(category); response.success = true; response.data = category; response.errorMessage = null; return(Json(response, JsonRequestBehavior.AllowGet)); }