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

Gets the PersonAlias the by alias identifier.
public GetByAliasId ( int aliasPersonId ) : PersonAlias
aliasPersonId int The alias person identifier.
Результат PersonAlias
Пример #1
0
        public void SaveStars(DateTime dt, int paId, decimal starsValue, string note)
        {
            StarsProjectContext starsProjectContext = new StarsProjectContext();
            StarsService starsService = new StarsService(starsProjectContext);
            org.newpointe.Stars.Model.Stars stars = new org.newpointe.Stars.Model.Stars();

            PersonAliasService personAliasService = new PersonAliasService(new RockContext());
            int campusId = personAliasService.GetByAliasId(paId).Person.GetCampus().Id;

            stars.PersonAliasId = paId;
            stars.CampusId = campusId;
            stars.TransactionDateTime = DateTime.Now;
            stars.Value = starsValue;
            stars.Note = note;

            starsService.Add(stars);

            starsProjectContext.SaveChanges();
        }