public async Task <ActionResult> Delete(string key) { MethodReturnResult result = new MethodReturnResult(); using (WorkOrderServiceClient client = new WorkOrderServiceClient()) { result = await client.DeleteAsync(key); if (result.Code == 0) { result.Message = string.Format(PPMResources.StringResource.WorkOrder_Delete_Success , key); } return(Json(result)); } }