public void AddUser(Newtonsoft.Json.Linq.JObject obj) { Users user = new Users { Name = obj["Name"].ToString(), Surname = obj["Surname"].ToString(), Pseudonym = obj["Pseudonym"].ToString(), Email = obj["Email"].ToString(), FieldOfActivity = obj["FieldOfActivity"].ToString(), City = obj["City"].ToString(), Password = obj["Password"].ToString() }; WorkWithDb.AddNewUser(user); }