public string DoConfirmRegistration(string jsonReg) { string error = ""; var registration = SerializationHelper.DeserializeFromJsonString <Registration>(jsonReg); var context = new KoloAndroidEntities4Serialization(); var customer = RegistrationHelper.DoRegistrationConfirmation(registration, context, out error); KoloWsObject <Customer> koloWs = new KoloWsObject <Customer>(error, customer); context.Dispose(); var result = SerializationHelper.SerializeToJson(koloWs); return(result); }