Esempio n. 1
0
        public async Task <ActionResult> Delete(string key)
        {
            MethodReturnResult result = new MethodReturnResult();

            using (RouteEnterpriseServiceClient client = new RouteEnterpriseServiceClient())
            {
                result = await client.DeleteAsync(key);

                if (result.Code == 0)
                {
                    result.Message = string.Format(FMMResources.StringResource.RouteEnterprise_Delete_Success
                                                   , key);
                }
                return(Json(result));
            }
        }