public async Task <IActionResult> SelectCourse(SelectedBookVM book) { try { if (!ModelState.IsValid) { return(null); } var bk = await bookServices.AddUserBook(book); return(Ok(bk)); } catch (Exception ex) { throw new Exception(ex.Message); } }
public Task <object> AddUserBook(SelectedBookVM book) { throw new NotImplementedException(); }