public override object OnPut(Usuario request) { if (request.Accion.IsNullOrEmpty()) { request.Accion = "Actualizar"; } ValidateUserAction("Usuarios." + request.Accion); if (request.Accion == "Actualizar") { DbFactory.ActualizarUsuario(request); } else if (request.Accion == "CambiarClave") { DbFactory.CambiarClaveUsuario(request); } else { return new UsuarioResponse() { Success = false, ResponseStatus = new ResponseStatus() { ErrorCode = "AccionNoProgramada", Message = "Accion " + request.Accion + " No programada" } } }; return(new UsuarioResponse() { Success = true, }); } }