Example #1
0
        public void CompleteCoordination(CompleteProblemInput input)
        {
            var problem = input.MapTo <Problem>();

            problem.CoordinationState = CoordinationState.Completed;
            _problemRepository.Update(problem,
                                      new System.Linq.Expressions.Expression <Func <Problem, object> >[] {
                u => u.ActualCompletionTime,
                u => u.CoordinationState
            });
            AppBaseContext.Instance.Produce("add-project-briefing", JsonConvert.SerializeObject(new {
                TenantId  = _op.TenantId,
                ProjectId = problem.ProjectId
            }));
        }
Example #2
0
 public IActionResult CompleteCoordination(int id, [FromBody] CompleteProblemInput input)
 {
     input.Id = id;
     _problemService.CompleteCoordination(input);
     return(Created("", new { id }));
 }