Esempio n. 1
0
 public IActionResult DeleteChat(string id)
 {
     ChatDataProvider.DeleteChatByID(id);
     return(Ok());
 }
Esempio n. 2
0
 public IActionResult GetByChatId(string id)
 {
     return(Ok(ChatDataProvider.GetChatByID(id)));
 }
Esempio n. 3
0
 public IActionResult PutChat(Chat chat)
 {
     ChatDataProvider.AddChat(chat);
     return(Ok());
 }
Esempio n. 4
0
 public IActionResult GetChats()
 {
     return(Ok(ChatDataProvider.GetAllChats()));
 }