public void Post([FromBody] ChildrenParam newChildren) { _childrenRepository.AddChildren(new Children { Id = newChildren.Id, Name = newChildren.Name, Birthday = newChildren.Birthday, Address = newChildren.Address, Parent1 = newChildren.Parent1, Parent2 = newChildren.Parent2, CreatedOn = DateTime.Now, UpdatedOn = DateTime.Now, }); }