예제 #1
0
        public ActionResult ResendInvitation(string id)
        {
            var invit    = BLLInvitations.GetInvitation(Guid.Parse(id));
            var conflict = BLLConflicts.GetConflict(invit.IdConflict);
            var guid     = Guid.NewGuid();
            var url      = Url.Action("Conflict", "Viewer", new { conflictId = invit.IdConflict });

            FastArbitreEmails.InvitationToJoinConflict(invit, conflict,
                                                       String.Format("{0}?i={1}", Request.Url.Authority.ToLower() + url, invit.Id),
                                                       conflict.CreatedBy.DisplayName,
                                                       Url.Action("Index", "Email", new { id = guid.ToString() }), guid);
            return(View());
        }
예제 #2
0
        public ContentResult SendAllMails()
        {
            var to   = "*****@*****.**";
            var fake = "http://fakeaddress.com";

            // FastArbitreEmails.AccountCreated(to, "test emails", "testEmails", fake, Guid.NewGuid());
            //FastArbitreEmails.AccountCreatedForUserByLawyer(to, "TestEmails", fake, fake, Guid.NewGuid());
            //FastArbitreEmails.ArbitrationAsked(to, 412, fake, fake, Guid.NewGuid());
            //FastArbitreEmails.CaseRefused(to, "La raison du refus apparait ici!", fake, Guid.NewGuid());
            //FastArbitreEmails.ConfirmAccount(to, "Test emails", fake, fake, Guid.NewGuid());
            FastArbitreEmails.InvitationToJoinConflict(new Common.Invitation()
            {
                Email = to
            }, new Common.Conflict()
            {
                HasArbitralClause = false, Id = 42, IdCreationUser = "******", UsersInConflicts = new List <UsersInConflict>()
                {
                    new UsersInConflict()
                    {
                        UserDescriptionOfTheConflict = "Ma description", IdUser = "******"
                    }
                }
            }, fake, "test emails", fake, Guid.NewGuid());
            //FastArbitreEmails.LawyerCalledOnCase(to, "lawyer name", 412, "test client name", fake, "testlogin", "testpassword", fake, Guid.NewGuid());
            //FastArbitreEmails.LawyerStartedCase(to, fake,412, fake, fake, Guid.NewGuid());
            //FastArbitreEmails.NewMissionOrder(to, fake, fake, Guid.NewGuid());
            //FastArbitreEmails.PreConclusion(to,"user", 442, fake, fake, fake, Guid.NewGuid());
            //FastArbitreEmails.ReinitiatingPassword(to, fake, fake, Guid.NewGuid());
            //FastArbitreEmails.Sentence(to, 442, fake, fake, fake, Guid.NewGuid());
            //FastArbitreEmails.VisioAsked(to, "test email", 412, "raison de la demande de visio", fake, "refus", fake, Guid.NewGuid());
            //FastArbitreEmails.VisioConferencePlanned(to, DateTime.Now, "titre visio", "description visio", fake, "login", "password", fake, Guid.NewGuid());
            //FastArbitreEmails.VisioMultipleDateChoice(to, "titre conf", 442, fake, fake, Guid.NewGuid());
            //FastArbitreEmails.VisioNotProgrammable(to, "titre conf", 442, fake, fake, Guid.NewGuid());
            //FastArbitreEmails.VisioProgrammed(to,412, "url", "titre conf", new Common.MeetingProposition() { DateTimeProposition = DateTime.Now }, fake, Guid.NewGuid());
            //FastArbitreEmails.VisioProgrammedForArbiter(to, "titre conf", 442, fake, new Common.MeetingProposition() { DateTimeProposition = DateTime.Now }, fake, Guid.NewGuid());
            //FastArbitreEmails.YouHaveMail(to, new Common.Debate() { Title = "titre débat" }, fake, fake, Guid.NewGuid());

            //Guid guid = Guid.NewGuid();
            //FastArbitreEmails.EndFreePhase("*****@*****.**", "Pierre Lasvigne", string.Format("{0}://{1}{2}", Request.Url.Scheme, Request.Url.Authority, Url.Content("~")) + Url.Action("Conflict", "Viewer", new { conflictId = 808 }),
            //  Request.Url.Host.ToLower() + Url.Action("Index", "Email", new { id = guid.ToString() }), guid);
            //FastArbitreEmails.ConfirmContestationFilledIn("*****@*****.**", string.Format("{0}://{1}{2}", Request.Url.Scheme, Request.Url.Authority, Url.Content("~")) + Url.Action("Conflict", "Viewer", new { conflictId = 808 }),
            //   Request.Url.Host.ToLower() + Url.Action("Index", "Email", new { id = guid.ToString() }), guid);

            return(new ContentResult()
            {
                Content = "OK"
            });
        }