예제 #1
0
        public ActionResult Create(PensionEditModel pensionEditModel)
        {
            PopulateDropDownLists(pensionEditModel);

            if (ModelState.IsValid)
            {
                pensionEditModel.UserId = CurrentUser;

                _pensionService.CreatePension(pensionEditModel);

                return(RedirectToAction("Index"));
            }

            return(View(pensionEditModel));
        }
 public void Post([FromBody] PensionDetails createdObj)
 {
     _PensionService.CreatePension(createdObj);
 }