Esempio n. 1
0
        public async Task <ActionResult> Delete(string id)
        {
            var clientId = this.GetClientId();
            var doc      = await _srvKycDocumentsManager.DeleteAsync(clientId, id);

            return(this.JsonShowContentResult("#docsArea" + doc.Type, Url.Action("UploadFrame", new { type = doc.Type }), null, new JsonResultExtParams {
                ShowLoading = true
            }));
        }
Esempio n. 2
0
        public async Task <ActionResult> DeleteDocument(DeleteDocumentModel model)
        {
            await _srvKycDocumentsManager.DeleteAsync(model.ClientId, model.DocumentId);

            return(this.JsonRequestResult("#clientDocuments", Url.Action("Index", new { id = model.ClientId })));
        }