public int insertBookReserved(int userId, string isbn, string reservedDate) { try { BookLogic bookLogic = new BookLogic(); return(bookLogic.insertBookReserved(userId, isbn, reservedDate)); } catch (BusinessLogicException ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "insertBookReserved", ex.Message, AppEnum.FaultSourceWS.BusinessError.ToString(), Constants.faultBusinessError, AppEnum.FaultSourceWS.BusinessError); throw soapException; } catch (Exception ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "insertBookReserved", ex.Message, AppEnum.FaultSourceWS.AplicationError.ToString(), Constants.faultAplicationError, AppEnum.FaultSourceWS.AplicationError); throw soapException; } }
public int DeleteBook(string isbn) { try { BookLogic bookLogic = new BookLogic(); return(bookLogic.DeleteBook(isbn)); } catch (BusinessLogicException ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "DeleteBook", ex.Message, AppEnum.FaultSourceWS.BusinessError.ToString(), Constants.faultBusinessError, AppEnum.FaultSourceWS.BusinessError); throw soapException; } catch (Exception ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "DeleteBook", ex.Message, AppEnum.FaultSourceWS.AplicationError.ToString(), Constants.faultAplicationError, AppEnum.FaultSourceWS.AplicationError); throw soapException; } }
public int UpdateBook(string updatedIsbn, string bookName, int author, int category, int language, int publishYear, int pages, string publisher, string isbn) { try { BookLogic bookLogic = new BookLogic(); return(bookLogic.UpdateBook(updatedIsbn, bookName, author, category, language, publishYear, pages, publisher, isbn)); } catch (BusinessLogicException ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "UpdateBook", ex.Message, AppEnum.FaultSourceWS.BusinessError.ToString(), Constants.faultBusinessError, AppEnum.FaultSourceWS.BusinessError); throw soapException; } catch (Exception ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "UpdateBook", ex.Message, AppEnum.FaultSourceWS.AplicationError.ToString(), Constants.faultAplicationError, AppEnum.FaultSourceWS.AplicationError); throw soapException; } }
public DataTable BookSearch(string bookISBN, string bookName, string author) { try { BookLogic bookLogic = new BookLogic(); return(bookLogic.BookSearch(bookISBN, bookName, author).ToDataTable()); } catch (BusinessLogicException ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "BookSearch", ex.Message, AppEnum.FaultSourceWS.BusinessError.ToString(), Constants.faultBusinessError, AppEnum.FaultSourceWS.BusinessError); throw soapException; } catch (Exception ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "BookSearch", ex.Message, AppEnum.FaultSourceWS.AplicationError.ToString(), Constants.faultAplicationError, AppEnum.FaultSourceWS.AplicationError); throw soapException; } }
public DataTable GetAllBooksBorrowedWithUserViewByUserId(int userId) { try { BookLogic bookLogic = new BookLogic(); return(bookLogic.GetAllBooksBorrowedWithUserViewByUserId(userId).ToDataTable()); } catch (BusinessLogicException ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "GetAllBooksBorrowedWithUserViewByUserId", ex.Message, AppEnum.FaultSourceWS.BusinessError.ToString(), Constants.faultBusinessError, AppEnum.FaultSourceWS.BusinessError); throw soapException; } catch (Exception ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "GetAllBooksBorrowedWithUserViewByUserId", ex.Message, AppEnum.FaultSourceWS.AplicationError.ToString(), Constants.faultAplicationError, AppEnum.FaultSourceWS.AplicationError); throw soapException; } }
public Boolean passwordFormatValidation(string password) { try { LoginLogic loginLogic = new LoginLogic(); return(loginLogic.passwordFormatValidation(password)); } catch (BusinessLogicException ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "passwordFormatValidation", ex.Message, AppEnum.FaultSourceWS.BusinessError.ToString(), Constants.faultBusinessError, AppEnum.FaultSourceWS.BusinessError); throw soapException; } catch (Exception ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "passwordFormatValidation", ex.Message, AppEnum.FaultSourceWS.AplicationError.ToString(), Constants.faultAplicationError, AppEnum.FaultSourceWS.AplicationError); throw soapException; } }
public int GetTotalBookReservedByIsbn(string isbn) { try { BookLogic bookLogic = new BookLogic(); return(bookLogic.SelectCountBookReservedByIsbn(isbn)); } catch (BusinessLogicException ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "GetTotalBookReservedByIsbn", ex.Message, AppEnum.FaultSourceWS.BusinessError.ToString(), Constants.faultBusinessError, AppEnum.FaultSourceWS.BusinessError); throw soapException; } catch (Exception ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "GetTotalBookReservedByIsbn", ex.Message, AppEnum.FaultSourceWS.AplicationError.ToString(), Constants.faultAplicationError, AppEnum.FaultSourceWS.AplicationError); throw soapException; } }
public DataTable GetUsersByName(String userName) { try { UserLogic userLogic = new UserLogic(); return(userLogic.GetUsersByName(userName).ToDataTable()); } catch (BusinessLogicException ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "GetUsersByName", ex.Message, AppEnum.FaultSourceWS.BusinessError.ToString(), Constants.faultBusinessError, AppEnum.FaultSourceWS.BusinessError); throw soapException; } catch (Exception ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "GetUsersByName", ex.Message, AppEnum.FaultSourceWS.AplicationError.ToString(), Constants.faultAplicationError, AppEnum.FaultSourceWS.AplicationError); throw soapException; } }
public DataTable UserLogin(string username, string password) { try { UserLogic userLogic = new UserLogic(); return(userLogic.PerformLogin(username, password).ToDataTable()); } catch (BusinessLogicException ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "UserLogin", ex.Message, AppEnum.FaultSourceWS.BusinessError.ToString(), Constants.faultBusinessError, AppEnum.FaultSourceWS.BusinessError); throw soapException; } catch (Exception ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "UserLogin", ex.Message, AppEnum.FaultSourceWS.AplicationError.ToString(), Constants.faultAplicationError, AppEnum.FaultSourceWS.AplicationError); throw soapException; } }
public int deleteUser(int userID) { try { UserLogic userLogic = new UserLogic(); return(userLogic.deleteUser(userID)); } catch (BusinessLogicException ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "deleteUser", ex.Message, AppEnum.FaultSourceWS.BusinessError.ToString(), Constants.faultBusinessError, AppEnum.FaultSourceWS.BusinessError); throw soapException; } catch (Exception ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "deleteUser", ex.Message, AppEnum.FaultSourceWS.AplicationError.ToString(), Constants.faultAplicationError, AppEnum.FaultSourceWS.AplicationError); throw soapException; } }
public int getUserLevelCodeByLevelDescription(string userLevelDescription) { try { UserLogic userLogic = new UserLogic(); return(userLogic.getUserLevelCodeByLevelDescription(userLevelDescription)); } catch (BusinessLogicException ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "getUserLevelDescriptionByLevelCode", ex.Message, AppEnum.FaultSourceWS.BusinessError.ToString(), Constants.faultBusinessError, AppEnum.FaultSourceWS.BusinessError); throw soapException; } catch (Exception ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "getUserLevelDescriptionByLevelCode", ex.Message, AppEnum.FaultSourceWS.AplicationError.ToString(), Constants.faultAplicationError, AppEnum.FaultSourceWS.AplicationError); throw soapException; } }
public int updateUserWithoutPassword(string userName, string userLevelDescription, int userID) { try { UserLogic userLogic = new UserLogic(); return(userLogic.updateUserWithoutPassword(userName, userLevelDescription, userID)); } catch (BusinessLogicException ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "updateUserWithoutPassword", ex.Message, AppEnum.FaultSourceWS.BusinessError.ToString(), Constants.faultBusinessError, AppEnum.FaultSourceWS.BusinessError); throw soapException; } catch (Exception ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "updateUserWithoutPassword", ex.Message, AppEnum.FaultSourceWS.AplicationError.ToString(), Constants.faultAplicationError, AppEnum.FaultSourceWS.AplicationError); throw soapException; } }
public int DeleteLanguage(int languageId) { try { MasterLogic masterLogic = new MasterLogic(); return(masterLogic.DeleteLanguage(languageId)); } catch (BusinessLogicException ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "DeleteLanguage", ex.Message, AppEnum.FaultSourceWS.BusinessError.ToString(), Constants.faultBusinessError, AppEnum.FaultSourceWS.BusinessError); throw soapException; } catch (Exception ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "DeleteLanguage", ex.Message, AppEnum.FaultSourceWS.AplicationError.ToString(), Constants.faultAplicationError, AppEnum.FaultSourceWS.AplicationError); throw soapException; } }
public DataTable GetAllLanguages() { try { MasterLogic masterLogic = new MasterLogic(); return(masterLogic.GetAllLanguages().ToDataTable()); } catch (BusinessLogicException ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "GetAllLanguages", ex.Message, AppEnum.FaultSourceWS.BusinessError.ToString(), Constants.faultBusinessError, AppEnum.FaultSourceWS.BusinessError); throw soapException; } catch (Exception ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "GetAllLanguages", ex.Message, AppEnum.FaultSourceWS.AplicationError.ToString(), Constants.faultAplicationError, AppEnum.FaultSourceWS.AplicationError); throw soapException; } }
public int SelectCountCategoryByName(string categoryName) { try { MasterLogic masterLogic = new MasterLogic(); return(masterLogic.SelectCountCategoryByName(categoryName)); } catch (BusinessLogicException ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "SelectCountCategoryByName", ex.Message, AppEnum.FaultSourceWS.BusinessError.ToString(), Constants.faultBusinessError, AppEnum.FaultSourceWS.BusinessError); throw soapException; } catch (Exception ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "SelectCountCategoryByName", ex.Message, AppEnum.FaultSourceWS.AplicationError.ToString(), Constants.faultAplicationError, AppEnum.FaultSourceWS.AplicationError); throw soapException; } }
public int insertAuthor(string authorName) { try { MasterLogic masterLogic = new MasterLogic(); return(masterLogic.insertAuthor(authorName)); } catch (BusinessLogicException ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "insertAuthor", ex.Message, AppEnum.FaultSourceWS.BusinessError.ToString(), Constants.faultBusinessError, AppEnum.FaultSourceWS.BusinessError); throw soapException; } catch (Exception ex) { HandleSoapException handleSoapExceptionnew = new HandleSoapException(); SoapException soapException = new SoapException(); soapException = handleSoapExceptionnew.CreateSoapException(Constants.faultUri, "insertAuthor", ex.Message, AppEnum.FaultSourceWS.AplicationError.ToString(), Constants.faultAplicationError, AppEnum.FaultSourceWS.AplicationError); throw soapException; } }