public IActionResult Delete(int id)
        {
            var success = _achievementsService.Delete(id);

            if (success)
            {
                return(Redirect("/Achievements/DeleteSuccess"));
            }

            return(Redirect(Achievements_Root_Path));
        }
        public async Task <IActionResult> SoftDeleteAchievement([FromRoute] int id)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var result = await achievementsService.Delete(id);

            if (result == null)
            {
                return(NotFound());
            }

            return(Ok(result));
        }