public async Task <ActionResult> Create([FromBody] Person person) { Guard.Against.NullOrWhiteSpace(person.FirstName, "firstName"); Guard.Against.NullOrWhiteSpace(person.LastName, "lastName"); var addedPerson = await personDataService.Add(person); return(CreatedAtAction(nameof(Get), new { id = addedPerson.Id }, addedPerson)); }