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, }); }
public void Put(string id, [FromBody] ChildrenParam childrenParam) { _childrenRepository.UpdateChildrenDocument(id, childrenParam.Name, childrenParam.Birthday, childrenParam.Address, childrenParam.Parent1, childrenParam.Parent2); }