public IActionResult Delete(int id) { var success = _questsService.Delete(id); if (success) { return(Redirect("/Quests/DeleteSuccess")); } return(Redirect(Quests_Root_Path)); }
public async Task <IActionResult> SoftDeleteQuests([FromRoute] int id) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = await questsService.Delete(id); if (result == null) { return(NotFound()); } return(Ok(result)); }