예제 #1
0
        public ActionResult Delete(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                return(this.Direct());
            }

            _service.DeleteFeedback(id);
            _service.Save();
            return(View("Index", GetToolarPermission()));
        }
예제 #2
0
 public async Task <IActionResult> DeleteFeedback(string id)
 {
     return(Ok(await _feedbackService.DeleteFeedback(id, HttpContext.User.Identity.Name)));
 }