public async Task <IActionResult> PostHistoryElement([FromBody] HistoryElementCreateDto historyToCreate, [FromRoute] long id) { await contactService.AddHistoryElement(id, _mapper.Map <HistoryElement>(historyToCreate)); User userOfChange = await userService.FindByNameAsync(User.Identity.Name); await modService.UpdateContactByHistoryElementAsync(userOfChange, id, historyToCreate.Name + ":" + historyToCreate.Comment); return(Ok()); }