public async Task <IActionResult> ChangeStatus( [FromServices] IStatementService statementService, [FromForm] StatusModel input) { await statementService.ChangeStatementStatus( new PrimaryKey(input.StatementId), (StatusCode)input.StatusCode, new StatusComment(input.Comment)); return(RedirectToAction("Edit", "Statement", new { id = input.StatementId })); }