//public async Task<Chat> GetChatByPartijId(int partijId) //{ // return await _unitOfWork.Chats // .GetChatByPartijId(partijId); //} public async Task <Chat> CreateChat(Chat newChat) { await _chatRepository.AddAsync(newChat); await _chatRepository.CommitAsync(); return(newChat); }