コード例 #1
0
 public ActionResult Sent()
 {
     Business.ApplicationService.AppServiceClient appclient = new Business.ApplicationService.AppServiceClient();
     Business.ApplicationService.InvitationApp[] invitationslist = appclient.GetInvitationmaster("*****@*****.**", "msgtype");
     List<UI.Models.mailmessage> mailmessages = new List<Models.mailmessage>();
     foreach (Business.ApplicationService.InvitationApp invitation in invitationslist)
     {
         UI.Models.mailmessage message = new Models.mailmessage();
         message.mailitemid = invitation.invitationmasterid;
         message.mailtime = invitation.invitetime.ToString();
         message.receipients = invitation.invitees;
         message.sender = invitation.sendorid;
         message.mailbrief = invitation.invitationtext;
       //  message.tags = invitation.Prop;
         mailmessages.Add(message);
     }
     return View(mailmessages);
 }
コード例 #2
0
        public ActionResult Sent()
        {
            Business.ApplicationService.AppServiceClient appclient       = new Business.ApplicationService.AppServiceClient();
            Business.ApplicationService.InvitationApp[]  invitationslist = appclient.GetInvitationmaster("*****@*****.**", "msgtype");
            List <UI.Models.mailmessage> mailmessages = new List <Models.mailmessage>();

            foreach (Business.ApplicationService.InvitationApp invitation in invitationslist)
            {
                UI.Models.mailmessage message = new Models.mailmessage();
                message.mailitemid  = invitation.invitationmasterid;
                message.mailtime    = invitation.invitetime.ToString();
                message.receipients = invitation.invitees;
                message.sender      = invitation.sendorid;
                message.mailbrief   = invitation.invitationtext;
                //  message.tags = invitation.Prop;
                mailmessages.Add(message);
            }
            return(View(mailmessages));
        }
コード例 #3
0
        //
        // GET: /Communication/
        public ActionResult Index()
        {
            Business.ApplicationService.AppServiceClient appclient = new Business.ApplicationService.AppServiceClient();
            Business.ApplicationService.InvitationApp[] invitationslist = appclient.GetInvitationmaster("*****@*****.**", "msgtype");

            List<UI.Models.mailmessage> mailmessages = new List<Models.mailmessage>();
            foreach (Business.ApplicationService.InvitationApp invitation in invitationslist)
            {
                UI.Models.mailmessage message = new Models.mailmessage();

                message.mailitemid = invitation.invitationmasterid;
                message.mailtime = invitation.invitetime.ToString();
                message.receipients = invitation.invitees;
                message.sender = invitation.sendorid;
                message.mailbrief = invitation.invitationtext;
                tags listmembersdata = JsonConvert.DeserializeObject<tags>(invitation.Prop);
                message.properties =listmembersdata;
                mailmessages.Add(message);
            }
            return View(mailmessages);
        }
コード例 #4
0
        //
        // GET: /Communication/

        public ActionResult Index()
        {
            Business.ApplicationService.AppServiceClient appclient       = new Business.ApplicationService.AppServiceClient();
            Business.ApplicationService.InvitationApp[]  invitationslist = appclient.GetInvitationmaster("*****@*****.**", "msgtype");

            List <UI.Models.mailmessage> mailmessages = new List <Models.mailmessage>();

            foreach (Business.ApplicationService.InvitationApp invitation in invitationslist)
            {
                UI.Models.mailmessage message = new Models.mailmessage();

                message.mailitemid  = invitation.invitationmasterid;
                message.mailtime    = invitation.invitetime.ToString();
                message.receipients = invitation.invitees;
                message.sender      = invitation.sendorid;
                message.mailbrief   = invitation.invitationtext;
                tags listmembersdata = JsonConvert.DeserializeObject <tags>(invitation.Prop);
                message.properties = listmembersdata;
                mailmessages.Add(message);
            }
            return(View(mailmessages));
        }