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 })); }
public IActionResult CompleteCoordination(int id, [FromBody] CompleteProblemInput input) { input.Id = id; _problemService.CompleteCoordination(input); return(Created("", new { id })); }