예제 #1
0
        public IActionResult UpdateClient([FromBody] JObject jsonClient)
        {
            Client client = Client.CreateFromJson(jsonClient);

            if (string.IsNullOrEmpty(client.ID))
            {
                return(BadRequest("Client ID is required"));
            }

            if (_clientProcessor.UpdateClient(client))
            {
                return(Json("Client Updated"));
            }
            return(BadRequest());
        }