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; }
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; }
private void SelectProjektMessage(ProjektModel obj) { Projekt = obj; ActiveMilestone = Projekt.Milstones[0]; }
private void ProjektModelClicked(ProjektModel obj) { _navigationService.NavigateTo(PageKeyEnum.Projekt.ToString()); Messenger.Default.Send(obj, MessengerMessage.SelectProjekt); }
public Task<int> DeleteProjekt(ProjektModel pm) { return _dataService.Delete(ConvertToEntity(pm)); }
public Task<int> SaveProjekt(ProjektModel pm) { return _dataService.Update(ConvertToEntity(pm)); }