public ActionResult Delete(string id, Form deletedForm) { _logger.LogDebug("Deleting ID: " + id); try { // TODO: Add delete logic here //return RedirectToAction(nameof(Index)); _formRepository.DeleteForm(GetUserObjectId(), id); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public void DeleteForm(int id) { _formRepository.DeleteForm(id); }