C# Class BloggingSystem.Services.DataMappers.CommentsMapper

Datei anzeigen Open project: vladislav-karamfilov/TelerikAcademy

Public Methods

Method Description
ToEntity ( CommentModel commentModel, User author ) : Comment
ToModel ( Comment commentEntity ) : CommentModel

Method Details

ToEntity() public static method

public static ToEntity ( CommentModel commentModel, User author ) : Comment
commentModel BloggingSystem.DataTransferObjects.CommentModel
author BloggingSystem.Models.User
return BloggingSystem.Models.Comment

ToModel() public static method

public static ToModel ( Comment commentEntity ) : CommentModel
commentEntity BloggingSystem.Models.Comment
return BloggingSystem.DataTransferObjects.CommentModel