public ClientModel Create(ClientModel client)
        {
            var newClient = this.context.Clients.Add(
                new ClientModel
            {
                Name             = client.Name,
                Birthdate        = client.Birthdate,
                RegistrationDate = client.RegistrationDate
            }
                ).Entity;

            this.context.SaveChanges();

            return(newClient);
        }
 public void Update(ClientModel client)
 {
     this.context.Entry(client).State = EntityState.Modified;
     this.context.SaveChanges();
 }