UserService Class
Namespace: PTS.Modules.Users.Common
Assembly: PTS.Modules.Users.dll
Syntax
public class UserService : SingleRepositoryService<User>, IServiceProviderAccessor, IUserService, ISeedWork<IUserService>, ISeedWork
Inheritance
System.Object
UserService
Constructors
UserService(IUnitOfWork)
Declaration
public UserService(IUnitOfWork unitOfWork)
Parameters
Type | Name | Description |
---|---|---|
IUnitOfWork | unitOfWork |
Methods
AgeInYears(User)
Gets age in whole years of an user
Declaration
public virtual int? AgeInYears(User user)
Parameters
Type | Name | Description |
---|---|---|
User | user |
Returns
Type | Description |
---|---|
System.Nullable<System.Int32> | Number of years, null if Birthdate is missing |
DaysUntilBirthday(User)
Declaration
public virtual int? DaysUntilBirthday(User user)
Parameters
Type | Name | Description |
---|---|---|
User | user |
Returns
Type | Description |
---|---|
System.Nullable<System.Int32> |
FullNameWithTitles(User)
Gets full name with titles. Example: "Ing. Pedro Zdarsky"
Declaration
public virtual string FullNameWithTitles(User user)
Parameters
Type | Name | Description |
---|---|---|
User | user |
Returns
Type | Description |
---|---|
System.String |
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()