public async Task <HttpStatusCode> DeletePublicChatMessage(int id) { PublicChatsController publicChatsController = new PublicChatsController(); var status = await publicChatsController.DeletePublicChatAsync(id); return(status); }
public async Task <HttpStatusCode> EditPublicChatMessage(PublicChat publicChat) { PublicChatsController publicChatsController = new PublicChatsController(); var status = await publicChatsController.UpdatePublicChatAsync(publicChat); return(status); }
public async Task <List <PublicChat> > GetPublicChatMessagesList(int count, int id) { PublicChatsController publicChatsController = new PublicChatsController(); var publicChats = await publicChatsController.GetAllPublicChatsAsync(count, id); return(publicChats); }