public ActionResult Create(SavingEditModel savingEditModel)
        {
            if (ModelState.IsValid)
            {
                var accountId = GetCurrentAccount();
                savingEditModel.AccountId = accountId;

                _savingService.CreateSaving(savingEditModel);

                return(RedirectToAction("Index"));
            }

            return(View(savingEditModel));
        }
 public void Post([FromBody] SavingDetails createdObj)
 {
     _SavingService.CreateSaving(createdObj);
 }