public async Task <bool> SetListEnrol(List <int> listMaMon) { BaseConnector connector = BaseConnector.getInstance(); RequestEnrolOrCancel req = new RequestEnrolOrCancel(); req.subject_ids = listMaMon.ToArray(); BaseResponse res = await connector.PostObject(DeployEnvironment.GetEnvironment().GetEnrolPath(), req); return(res.status); }
public static async Task <bool> sendAuth(string un, string pw) { BaseConnector connector = BaseConnector.getInstance(); BaseResponse res = await connector.PostObject(DeployEnvironment.GetEnvironment().GetLoginPath(), new AuthRequest() { mssv = un, password = pw }); return(res.status); }