C# Class Teleimot.Services.Data.CommentsService

Inheritance: ICommentsService
Afficher le fichier Open project: TelerikAcademy/Web-Services-and-Cloud

Méthodes publiques

Méthode Description
AddNew ( Comment comment, string userId ) : int
CommentsService ( IRepository comments ) : System
GetAllByRealEstate ( int realEstateId, int skip, int take ) : IQueryable
GetAllByUser ( string username, int skip, int take ) : IQueryable
GetById ( int id ) : IQueryable

Private Methods

Méthode Description
SortAndPageComments ( bool>.Expression filterExpression, int skip, int take ) : IQueryable

Method Details

AddNew() public méthode

public AddNew ( Comment comment, string userId ) : int
comment Teleimot.Data.Models.Comment
userId string
Résultat int

CommentsService() public méthode

public CommentsService ( IRepository comments ) : System
comments IRepository
Résultat System

GetAllByRealEstate() public méthode

public GetAllByRealEstate ( int realEstateId, int skip, int take ) : IQueryable
realEstateId int
skip int
take int
Résultat IQueryable

GetAllByUser() public méthode

public GetAllByUser ( string username, int skip, int take ) : IQueryable
username string
skip int
take int
Résultat IQueryable

GetById() public méthode

public GetById ( int id ) : IQueryable
id int
Résultat IQueryable