public TipoEmpleoModuleInsert(ICommandInsertIdentity <TipoEmpleo> command)
        {
            _tipoEmpleoMapping             = new TipoEmpleoMapping();
            Post["/enterprise/tipoEmpleo"] = parameters =>
            {
                var request = this.Bind <TipoEmpleoRequest>();
                if (request.isValidPost())
                {
                    var tipoEmpleo = _tipoEmpleoMapping.getTipoEmpleoForPost(request);
                    command.execute(tipoEmpleo);

                    return(new Response()
                           .WithStatusCode(HttpStatusCode.OK));
                }
                return(new Response()
                       .WithStatusCode(HttpStatusCode.BadRequest));
            };
        }
        public TipoEmpleoModuleUpdate(ICommandUpdateIdentity <TipoEmpleo> command)
        {
            Put["/enterprise/tipoEmpleo"] = parameters =>
            {
                var request = this.Bind <TipoEmpleoRequest>();

                if (request.isValidPut())
                {
                    var mapTipoEmpleo = new TipoEmpleoMapping();
                    var tipoEmpleo    = mapTipoEmpleo.getTipoEmpleoForPut(request);
                    if (command.isExecutable(tipoEmpleo))
                    {
                        command.execute(tipoEmpleo);

                        return(new Response()
                               .WithStatusCode(HttpStatusCode.OK));
                    }
                }
                return(new Response()
                       .WithStatusCode(HttpStatusCode.BadRequest));
            };
        }