FoodLabelDemoAppService.cs 626 Bytes
using FoodLabeling.Application.Contracts.IServices;
using Volo.Abp.Application.Services;

namespace FoodLabeling.Application.Services;

/// <summary>
/// Food Labeling 示例应用服务实现(美国版)
/// </summary>
public class FoodLabelDemoAppService : ApplicationService, IFoodLabelDemoAppService
{
    /// <inheritdoc />
    public Task<string> HelloAsync(string name)
    {
        var displayName = string.IsNullOrWhiteSpace(name) ? "World" : name.Trim();
        var message = $"Hello, {displayName}! This is FoodLabeling US module. Server time: {Clock.Now:O}";
        return Task.FromResult(message);
    }
}