public void sendMsg()
        {
            messagestoph param = new messagestoph();

            param.message = Patikapp_proj_2.Resorurces.Session.PharmacyName + " :  " + _v.msgBox.Text + " " + DateTime.Now;
            param.ph_id   = Patikapp_proj_2.Resorurces.Session.pharmacy;
            param.user_id = Int32.Parse(_v.userGridView.SelectedCells[0].Value.ToString());

            _r.saveMsg(param);
        }
Exemple #2
0
 public void saveMsg(messagestoph param)
 {
     db.messagestoph.Add(param);
     db.SaveChanges();
 }