public EmptyResult UnMapModulefromApplication(string listId, string attributename) { string token = HttpContext.Session.GetString("access_token"); string results = APIservice.DeleteObject(listId.Trim(), "synapsenamespace=meta&synapseentityname=applicationlist&id=", token); return(new EmptyResult()); }
public static String UnMapModulefromApplication(string listId, string attributename) { string results = APIservice.DeleteObject(listId, "synapsenamespace=meta&synapseentityname=applicationmodulemapping&id="); listMappedmodules = APIservice.GetListById <Mappedmodule>(ApplicationId, "synapsenamespace=meta&synapseentityname=applicationmodulemapping&synapseattributename=application_id&attributevalue=").OrderBy(o => o.displayorder).ToList();; return(results); }
public ActionResult Delete(string id) { string token = HttpContext.Session.GetString("access_token"); string result = APIservice.DeleteObject(id, "synapsenamespace=core&synapseentityname=provider&id=", token); if (result == "OK") { this.toastNotification.AddSuccessToastMessage("Provider details is successfully deleted."); } else { this.toastNotification.AddErrorToastMessage("Error while deleting the Provider details."); } return(RedirectToAction("ProviderList")); }
public EmptyResult UnMapQuestionfromApplication(string applicationId, string questionid) { string token = HttpContext.Session.GetString("access_token"); List <ApplicationQuestion> applicationQuestion = APIservice.GetListById <ApplicationQuestion>(applicationId.Trim(), "synapsenamespace=meta&synapseentityname=applicationquestion&synapseattributename=application_id&attributevalue=", token).OrderBy(o => o.ordinalposition).ToList(); string applicationquestion_id = applicationQuestion.Where(app => app.questionid == questionid).Select(app => app.applicationquestion_id).FirstOrDefault(); string results = APIservice.DeleteObject(applicationquestion_id.Trim(), "synapsenamespace=meta&synapseentityname=applicationquestion&id=", token); if (results == "OK") { this.toastNotification.AddSuccessToastMessage("Question is unmapped from the application."); } return(new EmptyResult()); }
public IActionResult Delete(string id) { string token = HttpContext.Session.GetString("access_token"); string result = APIservice.DeleteObject(id, "synapsenamespace=meta&synapseentityname=wardbay&id=", token); if (result == "OK") { this.toastNotification.AddSuccessToastMessage("Ward Bay is deleted successfully."); } else { this.toastNotification.AddErrorToastMessage("Error while deleting the Ward Bay"); } return(RedirectToAction("WardBayList")); }
public ActionResult Delete(string id) { string token = HttpContext.Session.GetString("access_token"); string result = APIservice.DeleteObject(id, "synapsenamespace=meta&synapseentityname=ward&id=", token); if (result == "OK") { string sql = "DELETE FROM entitystorematerialised.meta_personacontext WHERE personacontext_id = @wardid"; var paramList = new List <KeyValuePair <string, string> >() { new KeyValuePair <string, string>("wardid", id) }; DataServices.executeSQLStatement(sql, paramList); this.toastNotification.AddSuccessToastMessage("Ward is successfully deleted."); } return(RedirectToAction("WardList")); }