public ActionResult RemoveConverserFromConversation(Guid token, Guid conversationid, [FromBody] ConverserDTO converser) { Session session = _loginService.ValidateUserContext(token); string message = null; bool removed = _dataService.TryRemoveConverserFromConversation(session.User, conversationid, converser.Converser, out message); if (removed) { return(NoContent()); } _logger.LogInformation(message); return(BadRequest("Cannot remove converser from conversation.")); }
public bool RemoveConverserFromConversation(Guid sessionId, Guid conversationid, ConverserDTO converser) { throw new NotImplementedException(); }
public ActionResult AddConverserToConversation(Guid token, Guid conversationid, [FromBody] ConverserDTO converser) { Session session = _loginService.ValidateUserContext(token); string message = null; bool created = _dataService.TryAddConverserToConversation(session.User, conversationid, converser.Converser, out message); if (created) { return(Created("", true)); } _logger.LogInformation(message); return(BadRequest("Cannot add converser to conversation.")); }
public Guid AddConverserToConversation(Guid sessionId, Guid conversationid, ConverserDTO converser) { throw new NotImplementedException(); }