public async Task <JsonResult> ELRemove() { try { var id = Guid.Parse(Request.Form["id"]); if (EmailListService.Remove(id)) { return(Success(id.ToString())); } return(Failed(MessageUtilityService.FailedRemove("Email"))); } catch { return(Failed(MessageUtilityService.ServerError())); } }
public async Task <JsonResult> ILSRemoveID() { try { var oid = Guid.Parse(Request.Form["id"]); var aid = Guid.Parse(Request.Form["aid"]); if (ImageLinkStorageService.RemoveByOID(oid, aid)) { return(Success("")); } return(Failed(MessageUtilityService.FailedRemove("Image"))); } catch { return(Failed(MessageUtilityService.ServerError())); } }
public async Task <JsonResult> LSRemove() { try { var id = Guid.Parse(Request.Form["id"]); var oid = Guid.Parse(Request.Form["oid"]); if (LocationStorageService.Remove(id, oid)) { return(Success(id.ToString())); } return(Failed(MessageUtilityService.FailedRemove("Location"))); } catch { return(Failed(MessageUtilityService.ServerError())); } }
public async Task <JsonResult> RCRemove() { try { var id = Guid.Parse(Request.Form["id"]); var aid = Guid.Parse(Request.Form["aid"]); if (ReportClaimsService.Remove(id, aid)) { return(Success(id.ToString())); } return(Failed(MessageUtilityService.FailedRemove("Report"))); } catch { return(Failed(MessageUtilityService.ServerError())); } }
public async Task <JsonResult> SBRemove() { try { var id = Guid.Parse(Request.Form["id"]); var sid = Guid.Parse(Request.Form["sid"]); if (StoreBranchService.Remove(id, sid)) { return(Success(id.ToString())); } return(Failed(MessageUtilityService.FailedRemove("Store Branch"))); } catch { return(Failed(MessageUtilityService.ServerError())); } }
public async Task <JsonResult> ISRemove() { try { var id = Guid.Parse(Request.Form["id"]); var iid = Guid.Parse(Request.Form["iid"]); if (IS_ItemStockService.Remove(id, iid)) { return(Success(id.ToString())); } return(Failed(MessageUtilityService.FailedRemove("Stock"))); } catch { return(Failed(MessageUtilityService.ServerError())); } }
public async Task <JsonResult> MCRemove() { try { var id = Guid.Parse(Request.Form["id"]); var rid = Guid.Parse(Request.Form["rid"]); if (MessagingConversationService.Remove(id, rid)) { return(Success(id.ToString())); } return(Failed(MessageUtilityService.FailedRemove("Conversation"))); } catch { return(Failed(MessageUtilityService.ServerError())); } }
public async Task <JsonResult> GDRemove() { try { var id = Guid.Parse(Request.Form["id"]); var oid = Guid.Parse(Request.Form["oid"]); var aid = Guid.Parse(Request.Form["aid"]); if (GroupingsDataService.Remove(id, oid, aid)) { return(Success(id.ToString())); } return(Failed(MessageUtilityService.FailedRemove(""))); } catch { return(Failed(MessageUtilityService.ServerError())); } }
public async Task <JsonResult> COIRemove() { try { var id = Guid.Parse(Request.Form["id"]); var coid = Guid.Parse(Request.Form["coid"]); var aid = Guid.Parse(Request.Form["aid"]); if (CustomerOrderItemService.Remove(id, coid, aid)) { return(Success(id.ToString())); } return(Failed(MessageUtilityService.FailedRemove("Customer Item"))); } catch { return(Failed(MessageUtilityService.ServerError())); } }
public async Task <JsonResult> QTRemove() { try { var id = Guid.Parse(Request.Form["id"]); var qiid = Guid.Parse(Request.Form["qiid"]); var aid = Guid.Parse(Request.Form["aid"]); if (QuizTakerService.Remove(id, qiid, aid)) { return(Success(id.ToString())); } return(Failed(MessageUtilityService.FailedRemove("Takers"))); } catch { return(Failed(MessageUtilityService.ServerError())); } }
public async Task <JsonResult> UALRemove() { try { var id = Guid.Parse(Request.Form["id"]); var uid = Guid.Parse(Request.Form["uid"]); var aid = Guid.Parse(Request.Form["aid"]); if (UserAccessLevelService.Remove(id, uid, aid)) { return(Success(id.ToString())); } return(Failed(MessageUtilityService.FailedRemove(""))); } catch { return(Failed(MessageUtilityService.ServerError())); } }
public async Task <JsonResult> QUARemove() { try { var id = Guid.Parse(Request.Form["id"]); var qtid = Guid.Parse(Request.Form["qtid"]); var qqid = Guid.Parse(Request.Form["qqid"]); var qaid = Guid.Parse(Request.Form["qaid"]); if (QuizUserAnswerService.Remove(id, qtid, qqid, qaid)) { return(Success(id.ToString())); } return(Failed(MessageUtilityService.FailedRemove("Answer"))); } catch { return(Failed(MessageUtilityService.ServerError())); } }
public async Task <JsonResult> QQARemove() { try { var id = Guid.Parse(Request.Form["id"]); var qqid = Guid.Parse(Request.Form["qqid"]); var cid = Guid.Parse(Request.Form["cid"]); var aid = Guid.Parse(Request.Form["aid"]); if (QuizQuestionAnswerService.Remove(id, qqid, aid, cid)) { return(Success(id.ToString())); } return(Failed(MessageUtilityService.FailedRemove("Choice"))); } catch { return(Failed(MessageUtilityService.ServerError())); } }