Uat_Study
parent
a914e6815e
commit
93d363f76c
|
@ -9,13 +9,13 @@ namespace IRaCIS.Application.Services
|
|||
private readonly IRepository<Dictionary> _dicRepository;
|
||||
private readonly IRepository<Trial> _trialRepository;
|
||||
|
||||
private readonly IDistributedCache _cache;
|
||||
//private readonly IDistributedCache _cache;
|
||||
|
||||
public TestService(IRepository<Dictionary> dicRepository, IRepository<Trial> trialRepository, IDistributedCache cache)
|
||||
public TestService(IRepository<Dictionary> dicRepository, IRepository<Trial> trialRepository/*, IDistributedCache cache*/)
|
||||
{
|
||||
_dicRepository = dicRepository;
|
||||
_trialRepository = trialRepository;
|
||||
_cache = cache;
|
||||
//_cache = cache;
|
||||
}
|
||||
|
||||
public string Get()
|
||||
|
@ -24,7 +24,7 @@ namespace IRaCIS.Application.Services
|
|||
}
|
||||
|
||||
[HttpPost]
|
||||
public string Get(testModel testModel)
|
||||
public string Get(TestModel testModel)
|
||||
{
|
||||
|
||||
//_cache.SetString("test" , "cacheStr");
|
||||
|
@ -73,13 +73,22 @@ namespace IRaCIS.Application.Services
|
|||
|
||||
return _userInfo.LocalIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public string PostData(List<TestModel> testModelList)
|
||||
{
|
||||
return string.Join(",", testModelList);
|
||||
}
|
||||
}
|
||||
|
||||
public class testModel
|
||||
public class TestModel
|
||||
{
|
||||
|
||||
//[Required]
|
||||
//public string Id { get; set; }
|
||||
public string Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue