public async Task <IActionResult> CreateAsync(int groupId, [FromBody] TransactionRequestModel transaction) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = await transactionsService.CreateAsync(groupId, User, transaction); return(HandlePostResult($"groups/{groupId}/transactions", result)); }