public ActionResult Delete(string id) { if (string.IsNullOrEmpty(id)) { return(this.Direct()); } _service.DeleteFeedback(id); _service.Save(); return(View("Index", GetToolarPermission())); }
public async Task <IActionResult> DeleteFeedback(string id) { return(Ok(await _feedbackService.DeleteFeedback(id, HttpContext.User.Identity.Name))); }