public async Task <MessageResponse> LeaveGroup(UserGroupActionModel action) { CoreEngine core = new CoreEngine(); var msg = await core.LeaveGroup(_repo, action.User, action.Group); var response = new MessageResponse { Message = msg }; return(response); }