Exemple #1
0
 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());
     }
 }
Exemple #2
0
 public void DeleteForm(int id)
 {
     _formRepository.DeleteForm(id);
 }