FoodLabelThDemoAppService.cs
636 Bytes
using FoodLabeling.Th.Application.Contracts.IServices;
using Volo.Abp.Application.Services;
namespace FoodLabeling.Th.Application.Services;
/// <summary>
/// Food Labeling 示例应用服务实现(泰额版)
/// </summary>
public class FoodLabelThDemoAppService : ApplicationService, IFoodLabelThDemoAppService
{
/// <inheritdoc />
public Task<string> HelloAsync(string name)
{
var displayName = string.IsNullOrWhiteSpace(name) ? "World" : name.Trim();
var message = $"Hello, {displayName}! This is FoodLabeling TH module. Server time: {Clock.Now:O}";
return Task.FromResult(message);
}
}