Example #1
0
        // I intentionally removed the token validation algorythms, session validation, and other security measures in this demo code.

        public static int DeleteEmployee(ref SimpleCrudContext api, ref HomeDeleteEmployeeParam param)
        {
            param = param.TrimAll();
            return(api.DeleteEmployee(param.EmployeeID));
        }