public void Put(int id, [FromBody] PensionDetails editedObj)
 {
     _PensionService.EditPension(editedObj);
 }
        public void EditPension(PensionDetails pensionDetails)
        {
            var pension = Mapper.Map <Pension>(pensionDetails);

            _pensionRepository.Update(pension);
        }
 public void Post([FromBody] PensionDetails createdObj)
 {
     _PensionService.CreatePension(createdObj);
 }
        public void CreatePension(PensionDetails pensionDetails)
        {
            var pension = Mapper.Map <Pension>(pensionDetails);

            _pensionRepository.Create(pension);
        }