Beispiel #1
0
 public void InsertProfessionalMessageInbox(int applicantId, string applicationusername, string eventdescription,
                                            string message)
 {
     var context = new SidejobEntities();
     var professionalMessageInbox = new ProfessionalMessageInbox
     {
         MessageID = GetNextMessageID(),
         ProID = applicantId,
         SenderName = "My-Side-Job",
         ReceiverName = applicationusername,
         Date = DateTime.Now.Date,
         Title = eventdescription,
         Description = message,
         Checked = 1
     };
     context.AddToProfessionalMessageInboxes(professionalMessageInbox);
 }