public void SignOut(User user) { SqlParameter p1 = new SqlParameter("UserName", user.UserName); SqlParameter p2 = new SqlParameter("Password", user.Password); sqlHelper.ExecuteProc("SignOut", p1, p2); }
public void InsertMessage(Message msg) { SqlParameter p1 = new SqlParameter("Message", msg.Content); SqlParameter p2 = new SqlParameter("Date", msg.SendDate); SqlParameter p3 = new SqlParameter("SenderUser", msg.User.UserName); SqlParameter p4 = new SqlParameter("ReceiverUser", msg.ReciverUsers); sql.ExecuteProc("SendingMessage", p1, p2, p3, p4); }