Beispiel #1
0
        public String Add(string name, string password)
        {
            EmployeeEntity employee = new EmployeeEntity();

            employee.SetValues(name, password);
            JsonPackage     package = new JsonPackage();
            EmployeeRequest emp     = new EmployeeRequest();

            emp.Employee      = employee;
            package.ForwardTo = "EmployeeController";
            package.Type      = "AddRequest";
            package.Content   = emp;
            String jsonpackage = JsonConvert.SerializeObject(package);

            return(jsonpackage);
        }