Beispiel #1
0
        string GenerateMailBody(Member member, OrderOverview order, string desc)
        {
            var vm = new ProblemReportMailModel
            {
                CurrentStatus    = order.StatusName,
                Description      = desc,
                FromUnit         = order.FromUnit,
                ItemName         = order.ItemName,
                OrderCreatedDate = order.OrderDate,
                MemberUnitId     = member.UnitID,
                OrderId          = order.Id,
                ReportDate       = DateTime.Now,
                ReportingMember  = $"{member.FirstName} {member.LastName}",
                ToUnit           = order.ToUnit
            };

            var html = FakeController.RenderViewToString("Mail", "OrderProblem", vm);

            return(html);
        }