コード例 #1
0
ファイル: LocationController.cs プロジェクト: 88886/jnmmes
        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));
            }
        }