public GroupBasedReportViewModel(GroupBasedReport report)
        {
            //ATIVIDADES BÁSICAS DE RELATÓRIO
            ReportType    = report.ReportType;
            Date          = report.Date;
            PreacherId    = report.PreacherId;
            CoordinatorId = report.CoordinatorId;
            Reunions      = report.Reunions;
            Convertions   = report.Convertions;

            //ATIVIDADES BÁSICAS PARA EVENTOS
            Reunions      = report.Reunions;
            Convertions   = report.Convertions;
            ExternalCults = report.ExternalCults;
            CellsNumber   = report.CellsNumber;
            MeetingsWithTheCoordination = report.MeetingsWithTheCoordination;
            Baptized = report.Baptized;

            //MOVIMENTO FINANCEIRO
            PreviousMonth = report.PreviousMonth;
            Income        = report.Income;
            Expense       = report.Expense;
            Tenth         = report.Tenth;
            Balance       = report.Balance;
        }
Esempio n. 2
0
        public async Task <IActionResult> CreateCellBasedReport(GroupBasedReportViewModel model)
        {
            if (ModelState.IsValid)
            {
                var groupBasedReport = new GroupBasedReport(model);
                await repository.Add(groupBasedReport);

                return(RedirectToAction("list", "report"));
            }
            return(View());
        }