private void InsertFollower(int AccountID2) { try { if (Session["login"] != null && Session["FullName1"] != null && Session["FullName"] != null && Session["AccountID"] != null) { if (!CheckInsert(AccountID2)) { } var obj = new DTOFollower { AccountID1 = int.Parse(Session["AccountID"].ToString()), AccountID2 = AccountID2, }; BllFollower.Insert(obj); GetUserFollower(); _ErrorFollower = LibAlert.Alert.AlertSucess("<b style='color:black'>" + Session["FullName"] + "</b> đã thêm <b style='color:black'>" + lbFullName.Text + "</b> vào danh sách theo dõi !"); } } catch (Exception ex) { _ErrorFollower = LibAlert.Alert.AlertError("Có lỗi xảy ra trong quá trình theo dõi <br/>" + ex.Message); } }
public static bool Insert(DTOFollower obj) { return(DalFollower.Insert(obj)); }