C# Класс Saimoe.Core.ContestantService

@author: Tsinghua . @description: Manage all business relate to contestant
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddContestant ( Contestant contestant ) : void

Add a contestant to database

ContestantService ( ContestantRepository contestantRepository = null ) : System
GetContestant ( string googlePlusId ) : Contestant

Get contestant registration info by given google plus id

UpdateContestantProfile ( string googlePlusId, Profile profile ) : void

Update profile of contestant

Описание методов

AddContestant() публичный Метод

Add a contestant to database
public AddContestant ( Contestant contestant ) : void
contestant Saimoe.Models.Contestant
Результат void

ContestantService() публичный Метод

public ContestantService ( ContestantRepository contestantRepository = null ) : System
contestantRepository Saimoe.Repository.ContestantRepository
Результат System

GetContestant() публичный Метод

Get contestant registration info by given google plus id
public GetContestant ( string googlePlusId ) : Contestant
googlePlusId string
Результат Saimoe.Models.Contestant

UpdateContestantProfile() публичный Метод

Update profile of contestant
public UpdateContestantProfile ( string googlePlusId, Profile profile ) : void
googlePlusId string
profile Saimoe.Models.Profile
Результат void