public async Task <ActionResult> DeleteUsers(int[] ids) { ids.CheckNotNull("ids"); OperationResult result = await IdentityContract.DeleteUsers(ids); return(Json(result.ToAjaxResult())); }
public async Task <IHttpActionResult> Remove(int[] ids) { try { ids.CheckNotNull("ids"); OperationResult result = await IdentityContract.DeleteUsers(ids); return(Json(result)); } catch (Exception ex) { return(Json(new OperationResult(OperationResultType.Error, "删除用户!" + ex.ToString()))); } }