C# Class BloggingSystem.Services.DataMappers.UsersMapper

Exibir arquivo Open project: vladislav-karamfilov/TelerikAcademy

Public Methods

Method Description
ToEntity ( UserRegisterModel userModel ) : User
ToModel ( User userEntity ) : UserLoggedModel

Method Details

ToEntity() public static method

public static ToEntity ( UserRegisterModel userModel ) : User
userModel BloggingSystem.DataTransferObjects.UserRegisterModel
return BloggingSystem.Models.User

ToModel() public static method

public static ToModel ( User userEntity ) : UserLoggedModel
userEntity BloggingSystem.Models.User
return BloggingSystem.DataTransferObjects.UserLoggedModel