public ActionResult Create(BankDepositeViewModel bankDepositeViewModel) { var organisationId = UserOrganisationId; var centreId = UserCentreId; var personnelId = UserPersonnelId; if (ModelState.IsValid) { bankDepositeViewModel.BankDeposite.OrganisationId = organisationId; bankDepositeViewModel.BankDeposite.CentreId = centreId; bankDepositeViewModel.BankDeposite.CreatedBy = personnelId; bankDepositeViewModel.BankDeposite.IsCleared = false; bankDepositeViewModel.BankDeposite.IsBounced = false; bankDepositeViewModel.BankDeposite = NidanBusinessService.CreateBankDeposite(organisationId, bankDepositeViewModel.BankDeposite); return(RedirectToAction("Index")); } bankDepositeViewModel.Projects = new SelectList(NidanBusinessService.RetrieveProjects(organisationId, e => e.CentreId == centreId).Items.ToList()); bankDepositeViewModel.PaymentModes = new SelectList(NidanBusinessService.RetrievePaymentModes(organisationId, e => true)); return(View(bankDepositeViewModel)); }