last ...
This commit is contained in:
@@ -39,5 +39,20 @@ namespace xModels.Extensions
|
|||||||
{
|
{
|
||||||
return source.Select(i => i.Item);
|
return source.Select(i => i.Item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static string GetFullname(this XPersonDto source)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
var result = string.Empty;
|
||||||
|
|
||||||
|
//
|
||||||
|
if (!source.IsNullOrDefault())
|
||||||
|
{
|
||||||
|
result = $"{source.Firstname} {source.Lastname}";
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user