public ActionResult ApiSave(UserModel data) { if (data != null) { bookWebService.Save(data.Books); collectionWebService.Save(data.Collections); } return(Content(string.Empty)); }
public ActionResult Save(BookViewModel data) { var datas = new List <BookViewModel>() { data }; var result = bookWebService.Save(datas); return(Content(result)); }
public ActionResult SaveBooks(List <BookViewModel> datas) { var result = bookWebService.Save(datas); return(Content(result)); }