Ejemplo n.º 1
0
 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);
 }
 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);
 }