Example #1
0
        public ProjectEntity ConvertToEntity(ProjektModel entity)
        {
            if (entity == null)
                return null;

            var model = new ProjectEntity(entity.Id);
            model.Description = entity.Description;
            model.Name = entity.Name;
            return model;
        }
Example #2
0
        public async Task<ProjektModel> ConvertToModel(ProjectEntity entity)
        {
            if (entity == null)
                return null;

            var model = new ProjektModel(entity.Id);
            model.Description = entity.Description;
            model.Name = entity.Name;
            model.Passwords = await PasswordRepository.Instance.GetPasswordsByProjektId(entity.Id);
            model.Milstones = await MilestoneRepository.Instance.GetMilestonesByProjektId(entity.Id);
            return model;
        }
 private void SelectProjektMessage(ProjektModel obj)
 {
     Projekt = obj;
 }
Example #4
0
 private void SelectProjektMessage(ProjektModel obj)
 {
     Projekt = obj;
     ActiveMilestone = Projekt.Milstones[0];
 }
Example #5
0
 private void ProjektModelClicked(ProjektModel obj)
 {
     _navigationService.NavigateTo(PageKeyEnum.Projekt.ToString());
     Messenger.Default.Send(obj, MessengerMessage.SelectProjekt);
 }
Example #6
0
 public Task<int> DeleteProjekt(ProjektModel pm)
 {
     return _dataService.Delete(ConvertToEntity(pm));
 }
Example #7
0
 public Task<int> SaveProjekt(ProjektModel pm)
 {
     return _dataService.Update(ConvertToEntity(pm));
 }