C# Class Teleimot.Services.Data.CommentsService

Inheritance: ICommentsService
Datei anzeigen Open project: TelerikAcademy/Web-Services-and-Cloud

Public Methods

Method 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

Method Description
SortAndPageComments ( bool>.Expression filterExpression, int skip, int take ) : IQueryable

Method Details

AddNew() public method

public AddNew ( Comment comment, string userId ) : int
comment Teleimot.Data.Models.Comment
userId string
return int

CommentsService() public method

public CommentsService ( IRepository comments ) : System
comments IRepository
return System

GetAllByRealEstate() public method

public GetAllByRealEstate ( int realEstateId, int skip, int take ) : IQueryable
realEstateId int
skip int
take int
return IQueryable

GetAllByUser() public method

public GetAllByUser ( string username, int skip, int take ) : IQueryable
username string
skip int
take int
return IQueryable

GetById() public method

public GetById ( int id ) : IQueryable
id int
return IQueryable