public void CreateProjectForm(object context) { CreateProjectView createProjectView = new CreateProjectView(); var contextCreateProjectView = (CreateProjectViewViewModel)createProjectView.DataContext; contextCreateProjectView.contextProjectOverviewModel = this; contextCreateProjectView.cmbbxProjectMethod = dtagrdProjectMethod; contextCreateProjectView.SetEmployeeValues(); createProjectView.Show(); }
public async Task <ProjectView> AddProjectAsync(CreateProjectView createProjectView) { var project = new Project { Title = createProjectView.Title, Description = createProjectView.Description, RepositoryUrl = createProjectView.RepositoryUrl }; var result = await _projectsRepository.CreateAsync(project); return(result.Map()); }
public async Task <HttpResponseMessage> CreateProject(CreateProjectView request) { var responseView = new ResponseView(); if (request == null || !ModelState.IsValid) { responseView.Success = false; responseView.Errors = Errors; return(Request.CreateResponse(HttpStatusCode.OK, responseView)); } var response = await _projectService.CreateProject(request.CreatedBy, request.ProjectTitle, request.ProjectDescription); responseView.Success = response.Success; responseView.Errors = response.Errors; return(Request.CreateResponse(HttpStatusCode.OK, response)); }
public void NewProject() { CreateProjectView.ShowView(); }
public CreateProjectPage(CreateProjectView view) { InitializeComponent(); this.BindingContext = view; }
public SuggestedContactsTableViewSource(UITableView tableView, CreateProjectView view) : base(tableView) { this.CreateProjectView = view; tableView.RegisterNibForCellReuse(UINib.FromName("SuggestedContactTableViewCell", NSBundle.MainBundle), SuggestedContactTableViewCell.Key); }