public JsonResult RemoveInterview(string id) { if (string.IsNullOrEmpty(id)) { return(Json(false)); } var result = _interviewsRepository.RemoveInterview(id); return(result ? Json(true) : Json(false)); }
public IActionResult RemoveInterview(string id, string botId) { _interviewsRepository.RemoveInterview(id); return(Redirect("/bot?id=" + botId)); }