Example #1
0
        public async Task <ActionResult> CreateJournalNote([Required][FromRoute] string momentumCitizenId, [Required][FromBody] JournalNoteRequestModel requestModel)
        {
            var result = await _citizenService.CreateJournalNoteAsync(momentumCitizenId, requestModel).ConfigureAwait(false);

            if (result.IsError)
            {
                return(StatusCode((int)(result.StatusCode ?? HttpStatusCode.BadRequest), result.Error.Errors));
            }
            else
            {
                return(Ok("OK"));
            }
        }