public async Task <IActionResult> Create([FromBody] MembershipInstallmentPlanDto installmentPlanDto)
        {
            var plan = _installemtnPlan.CreateInstallmentPlan(installmentPlanDto);

            await _installementPlanRepository.AddAsync(plan);

            return(Ok(plan));
        }
Esempio n. 2
0
        public InstallmentPlan CreateInstallmentPlan(MembershipInstallmentPlanDto installmentPlanDto)
        {
            var installmentPlan = new InstallmentPlan();

            installmentPlan.Name        = installmentPlanDto.GetName();
            installmentPlan.CreatedDate = DateTime.Now;
            installmentPlan.UpdatedDate = DateTime.Now;
            installmentPlan.Active      = true;

            return(installmentPlan);
        }