irc-netcore-api/IRaCIS.Core.Application/TestService.cs

41 lines
908 B
C#

using IRaCIS.Application.Interfaces;
using IRaCIS.Application.Contracts;
using IRaCIS.Core.Infra.EFCore;
using Microsoft.AspNetCore.Mvc;
using System.Globalization;
using System.ComponentModel.DataAnnotations;
namespace IRaCIS.Application.Services
{
[ ApiExplorerSettings(GroupName = "Institution")]
public class TestService : BaseService
{
[HttpPost]
public string Get(testModel testModel)
{
var c = _repository.Where<Dictionary>().Select(t=>t.MappedValue).First();
CultureInfo culture = CultureInfo.CurrentUICulture;
var a = 123;
var b = _localizer["test{0}", "测试"];
return _localizer["test{0}","测试"];
}
}
public class testModel
{
//[Required]
//public string Id { get; set; }
}
}
namespace Localization
{
public class SharedResource
{
}
}