public ActionResult DeleteConfirmed(long id) { CurrenciesPost currencies = _currenciesService.GetPost(id); currencies.UserName = User.Identity.Name; _currenciesService.Delete(currencies); return(RedirectToAction("Index")); }