private void SetListData(SipAccountFormViewModel model) { model.Owners = _ownersRepository.GetAll(); model.Owners.Insert(0, new Owner { Id = Guid.Empty, Name = string.Empty }); model.CodecTypes = _codecTypeRepository.GetAll(false); model.CodecTypes.Insert(0, new CodecType { Id = Guid.Empty, Name = string.Empty }); model.AccountTypes = EnumHelpers.EnumSelectList <SipAccountType>().OrderBy(e => e.Text).ToList(); }