public async Task <IActionResult> SendMessage([FromBody] MessageContainerViewModel model) { var message = new Message() { Body = model.Body, Date = DateTime.Now, UserId = model.UID }; if (await _ChannelService.SendMessage(model.CID, model.UID, message)) { return(Ok(successfull)); } return(BadRequest(failed)); }