コード例 #1
0
ファイル: TimeUpBase.cs プロジェクト: haithemaraissia/Export
 public void InsertCustomerMessageInbox(int applicantId, string applicationusername, string eventdescription,
                                        string message)
 {
     var context = new SidejobEntities();
     var customerMessageInbox = new CustomerMessageInbox
     {
         MessageID = GetNextMessageID(),
         CustomerID = applicantId,
         SenderName = "My-Side-Job",
         ReceiverName = applicationusername,
         Date = DateTime.Now.Date,
         Title = eventdescription,
         Description = message,
         Checked = 1
     };
     context.AddToCustomerMessageInboxes(customerMessageInbox);
 }
コード例 #2
0
 public void InsertCustomerMessageInbox()
 {
     var context = new SidejobModel.SidejobEntities();
     var customerMessageInbox = new SidejobModel.CustomerMessageInbox
                                    {
                                        MessageID = GetNextMessageID(),
                                        CustomerID = _nextCustomerID,
                                        SenderName = "Side Job Team",
                                        ReceiverName = User.Identity.Name,
                                        Date = DateTime.Now.Date,
                                        Title = "Welcome To Side Jobs",
                                        Description =
                                            "Thank you for becoming a memeber of this service, here you can save a lot of time and money....",
                                        Checked = 1
                                    };
     context.AddToCustomerMessageInboxes(customerMessageInbox);
 }