Beispiel #1
0
        public IHttpActionResult ChangeMemorySize([FromBody] Libraries.Server.ServerChangeMemoryModel model)
        {
            if (!ModelState.IsValid)
            {
                JSendBadRequest(ModelState);
            }

            var res = _serverService.ChangeServerMemorySize(model);

            return(JSendSuccess(HttpStatusCode.OK, res));
        }