public async Task <ActionResult> Delete(string name) { MethodReturnResult result = new MethodReturnResult(); using (LocationServiceClient client = new LocationServiceClient()) { result = await client.DeleteAsync(name); if (result.Code == 0) { result.Message = string.Format(FMMResources.StringResource.Location_Delete_Success , name); } return(Json(result)); } }