Esempio n. 1
0
        public ActionResult Edit(PensionEditModel pensionEditModel)
        {
            PopulateDropDownLists(pensionEditModel);

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

                _pensionService.EditPension(pensionEditModel);

                return(RedirectToAction("Index"));
            }
            return(View(pensionEditModel));
        }
 public void Put(int id, [FromBody] PensionDetails editedObj)
 {
     _PensionService.EditPension(editedObj);
 }