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)); } }
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)); } }