Feature - Data getrennt Feature <<< AICore AICore: Verbindung BeWoPlaner -> MikeAiService
23 lines
655 B
C#
23 lines
655 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using BS.Shared.Interface.Abstract;
|
|
|
|
namespace BS.Shared.Extensions
|
|
{
|
|
public static class PersonNameableExtensions
|
|
{
|
|
public static string GetFirstNameLastName(this IPersonNameable personNameable, bool withcomma = false)
|
|
{
|
|
return $"{personNameable.FirstName}{(withcomma ? "," : null)} {personNameable.LastName}";
|
|
}
|
|
|
|
public static string GetLastNameFirstName(this IPersonNameable personNameable, bool withcomma = true)
|
|
{
|
|
return $"{personNameable.LastName}{(withcomma ? "," : null)} {personNameable.FirstName}";
|
|
}
|
|
}
|
|
}
|