31 lines
879 B
C#
31 lines
879 B
C#
using DaSaSo.Domain.Model;
|
|
using DaSaSo.Domain.Services;
|
|
using DaSaSo.Domain.Services.ProjectServices;
|
|
using DaSaSo.ViewModel.Interface;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DaSaSo.ViewModel.Commands
|
|
{
|
|
public class AddProjectCommand : AsyncCommandBase
|
|
{
|
|
private readonly IActualProject actualProject;
|
|
private readonly IProjectService _projectService;
|
|
|
|
public AddProjectCommand(IActualProject actualProject, IProjectService projectService)
|
|
{
|
|
this.actualProject = actualProject;
|
|
_projectService = projectService;
|
|
}
|
|
|
|
public override async Task ExecuteAsync(object? parameter)
|
|
{
|
|
Project pro = await _projectService.CreateProject(actualProject.AktuellClient);
|
|
|
|
}
|
|
}
|
|
}
|