Ejemplo n.º 1
0
        public async Task <JsonResult> AddGuid(Guid guid, string description)
        {
            if (!await YummyOnlineManager.AddGuid(new NewDineInformClientGuid {
                Guid = guid,
                Description = description
            }))
            {
                return(Json(new JsonError()));
            }
            SystemTcpClient.SendSystemCommand(SystemCommandType.RefreshNewDineClients);
            await YummyOnlineManager.RecordLog(Log.LogProgram.System, Log.LogLevel.Success, $"Guid {guid} ({description}) Added");

            return(Json(new JsonSuccess()));
        }