public InformationContract GetInfo(string tokenService, string tokenInfo) { if (SecurityDAO.CheckToken(tokenService) == true) { var info = Repositories.GetInfoByToken(tokenInfo); return(new InformationContract { idInfor = info.idInfor, contentInfo = info.contentInfo, dayCreateInfo = info.dayCreateInfo, newInfo = info.newInfo, titleInfo = info.titleInfo, token = info.token }); } return(null); }