public async Task <ActionResult> DeleteTemplate(int id) { surveyLogic.DeleteTemplate(id); List <TemplateSurvey> templateSurveys = await surveyLogic.GetTemplates(null); int userId = CurrentUserSession.Attende.ID; string userName = string.Concat(CurrentUserSession.Attende.FirstName, " ", CurrentUserSession.Attende.Lastname); commonLogic.SaveLog("Template", "Delete", userId, $"The Template id: {id} is deleted by {userName}."); return(Json(templateSurveys, JsonRequestBehavior.AllowGet)); }