Exemplo n.º 1
0
        string isAuthentication(int NhaXeId, int CustomerId, string apiToken, int XeXuatBenId)
        {
            string _isauthen = isAuthentication(NhaXeId, CustomerId, apiToken);

            if (!String.IsNullOrEmpty(_isauthen))
            {
                return(_isauthen);
            }
            xexuatben = _limousinebanveService.GetChuyenDiById(XeXuatBenId);
            if (xexuatben == null)
            {
                return("Không tồn tại thông tin xe xuất bến");
            }
            if (xexuatben.NhaXeId != NhaXeId)
            {
                return("Xe xuất bến không thuộc nhà xe");
            }
            return(String.Empty);
        }
Exemplo n.º 2
0
 ChuyenDi GetChuyenDiHienTai(int ChuyenDiId)
 {
     string _chuyendicache_key=string.Format("SETTING_API_CHUYEN_DI_{0}",ChuyenDiId);
     return _cacheManager.Get(_chuyendicache_key, () =>
     {
         return _limousinebanveService.GetChuyenDiById(ChuyenDiId);
     });
 }