public string Update(Category category) { try { var end = repasitory.Update(category); repasitory.Save(); return(end); } catch (Exception) { return(" Not found any category with this id for update"); } }
public string Update(Author author) { try { var end = repasitory.Update(author); repasitory.Save(); return(end); } catch (Exception) { return(" Not found any author with this id for update"); } }
public string Update(Book book) { try { var end = repasitory.Update(book); repasitory.Save(); return(end); } catch (Exception) { return(" Not found any book with this id for update"); } }
public string Update(Publications publications) { try { var end = repasitory.Update(publications); repasitory.Save(); return(end); } catch (Exception) { return(" Not found any publication with this id for update"); } }