public JsonResult GetBookByIsbn(string isbn) { DAL_Layer.Models.Books book = null; try { book = repo.GetBookByIsbn(isbn); } catch (Exception) { book = null; } return(Json(book)); }
public JsonResult GetBookByTitle(string title) { DAL_Layer.Models.Books book = null; try { book = repo.GetBookByTitle(title); } catch (Exception) { book = null; } return(Json(book)); }