예제 #1
0
        public async Task <ObjectResult> AddOrUpdateMessage([FromBody] Request <MESSAGE> message)
        {
            var result = await _service.AddOrUpdateMessage(message.Data);

            if (result.Success)
            {
                return(Ok(result.Data));
            }

            else
            {
                return(BadRequest(result.Error));
            }
        }