Exemplo n.º 1
0
        public static List <Message> ViewAdminSentMessage(string type)
        {
            Message admesg = new Message();

            admesg.Type = type;
            return(MessageDAClass.viewAdminSentMsg(admesg));
        }
Exemplo n.º 2
0
        public static List <Message> UserSentMessage(string type, string email)
        {
            Message usermsg = new Message();

            usermsg.Type  = type;
            usermsg.Email = email;
            return(MessageDAClass.viewUserSentMsg(usermsg));
        }
Exemplo n.º 3
0
        public static void InsertAdminMsg(string type, string email, string date, string msg)
        {
            Message mymsg = new Message();

            mymsg.Type  = type;
            mymsg.Email = email;
            mymsg.Msg   = msg;
            mymsg.Date  = date;

            MessageDAClass.AddAdminMsg(mymsg);
        }
Exemplo n.º 4
0
        public static void InsertUserMsg(string type, String mail, string date, string msg, string name)
        {
            Message mymsg = new Message();

            mymsg.Email = mail;
            mymsg.Msg   = msg;
            mymsg.Type  = type;
            mymsg.Date  = date;
            mymsg.Name  = name;

            MessageDAClass.AddUserMsg(mymsg);
        }
Exemplo n.º 5
0
 public static void DeleteAdminSxMsg(Message mymsg)
 {
     MessageDAClass.deleteAdminSMsg(mymsg);
 }
Exemplo n.º 6
0
 public static void DeleteUserSentMsg(Message msg)
 {
     MessageDAClass.deleteU_SentMsg(msg);
 }
Exemplo n.º 7
0
 public static List <Message> ViewuserInboxMessage(Message usermsg)
 {
     return(MessageDAClass.viewUserinboxMsg(usermsg));
 }
Exemplo n.º 8
0
 public static List <Message> ViewUserSentMessage()
 {
     return(MessageDAClass.viewUserMsg());
 }